From def0470d746774ad5d988aebe780a7e8c343a3a5 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 23 Nov 2009 18:39:26 +0000 Subject: [PATCH] enable pre/postActions in self service --- lam/lib/baseModule.inc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index 7f60dc83..48be0a83 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -1266,6 +1266,28 @@ abstract class baseModule { 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. *