mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-05 19:42:31 +02:00
added save_attributes() to baseModule, removed obsolete module_ready() and module_complete() functions
This commit is contained in:
parent
1b84f105a1
commit
ede8c042a0
8 changed files with 30 additions and 115 deletions
|
@ -34,9 +34,6 @@ $Id$
|
|||
*/
|
||||
class inetLocalMailRecipient extends baseModule {
|
||||
|
||||
/** used for account pages, true if input data is correct */
|
||||
var $inputCorrect = true;
|
||||
|
||||
/**
|
||||
* Returns meta data that is interpreted by parent class
|
||||
*
|
||||
|
@ -161,21 +158,6 @@ class inetLocalMailRecipient extends baseModule {
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of modifications which have to be made to the LDAP account.
|
||||
*
|
||||
* @return array list of modifications
|
||||
* <br>This function returns an array with 3 entries:
|
||||
* <br>array( DN1 ('add' => array($attr), 'remove' => array($attr), 'modify' => array($attr)), DN2 .... )
|
||||
* <br>DN is the DN to change. It may be possible to change several DNs (e.g. create a new user and add him to some groups via attribute memberUid)
|
||||
* <br>"add" are attributes which have to be added to LDAP entry
|
||||
* <br>"remove" are attributes which have to be removed from LDAP entry
|
||||
* <br>"modify" are attributes which have to been modified in LDAP entry
|
||||
*/
|
||||
function save_attributes() {
|
||||
return $_SESSION[$this->base]->save_module_attributes($this->attributes, $this->orig);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will create the meta HTML code to show a page with all attributes.
|
||||
*
|
||||
|
@ -276,21 +258,13 @@ class inetLocalMailRecipient extends baseModule {
|
|||
}
|
||||
$this->attributes['mailLocalAddress'] = array_unique($this->attributes['mailLocalAddress']);
|
||||
if (sizeof($this->triggered_messages) > 0) {
|
||||
$this->inputCorrect = false;
|
||||
return $this->triggered_messages;
|
||||
}
|
||||
else {
|
||||
$this->inputCorrect = true;
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns true if all needed settings are done.
|
||||
*/
|
||||
function module_complete() {
|
||||
return $this->inputCorrect;
|
||||
}
|
||||
|
||||
/**
|
||||
* In this function the LDAP account is built up.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue