enable pre/postActions in self service

This commit is contained in:
Roland Gruber 2009-11-23 18:39:26 +00:00
parent 2a6feae9d5
commit def0470d74
1 changed files with 22 additions and 0 deletions

View File

@ -1266,6 +1266,28 @@ abstract class baseModule {
return array(); return array();
} }
/**
* Allows the module to run commands before the LDAP entry is changed or created.
*
* An error message should be printed if the function returns false.
*
* @param array $attributes LDAP attributes of this entry
* @return boolean true, if no problems occured
*/
public function preModifySelfService($attributes) {
return true;
}
/**
* Allows the module to run commands after the LDAP entry is changed or created.
*
* @param array $attributes LDAP attributes of this entry
* @return boolean true, if no problems occured
*/
public function postModifySelfService($attributes) {
return true;
}
/** /**
* Returns the {@link accountContainer} object. * Returns the {@link accountContainer} object.
* *