From 94aac30fede7f9eb2bbf6d4a9c60616ff1016d82 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 4 Oct 2009 18:58:44 +0000 Subject: [PATCH] added icons for buttons on account page added passwordService interface --- lam/lib/modules.inc | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index e366f87a..703518a2 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1181,10 +1181,10 @@ class accountContainer { echo "type."list\" style=\"border-width:0px;\" width=\"100%\">"; echo ""; echo ""; @@ -1931,4 +1931,33 @@ class accountContainer { } } + +/** + * This interface needs to be implemented by all account modules which manage passwords. + * It allows LAM to provide central password changes. + * + * @package modules + */ +interface passwordService { + + /** + * This method specifies if a module manages password attributes. The module alias will + * then appear as option in the GUI. + *
If the module only wants to get notified about password changes then return false. + * + * @return boolean true if this module manages password attributes + */ + public function managesPasswordAttributes(); + + /** + * This function is called whenever the password of this module should be changed. + * + * @param String $password new password + * @return array list of error messages if any as parameter array for StatusMessage + * e.g. return arrray(array('ERROR', 'Password change failed.')) + */ + public function passwordChanged($password); + +} + ?>
"; // save button - echo " \n"; + echo " \n"; // reset button if ($this->dn_orig!='') { - echo "\n"; + echo "\n"; } echo ""; @@ -1201,7 +1201,7 @@ class accountContainer { echo "\n"; } echo " \n"; - echo "  \n"; + echo "  \n"; printHelpLink(getHelp('', '401'), '401'); } echo "