diff --git a/lam/docs/devel/mod_accountPages.htm b/lam/docs/devel/mod_accountPages.htm index 9e0e2a6d..c63f15e1 100644 --- a/lam/docs/devel/mod_accountPages.htm +++ b/lam/docs/devel/mod_accountPages.htm @@ -2,7 +2,6 @@
/** @@ -50,46 +46,46 @@ class get_metaData() { $return = array(); // configuration options - $return['config_options']['group'] = array( + $return['config_options']['group'] = array( array( - - 0 => array('kind' => 'text', 'text' => '<b>' . + + array('kind' => 'text', 'text' => +'<b>' . _('Minimum GID number') . " *: </b>"), - - 1 => array('kind' => 'input', 'name' => + array('kind' => 'input', 'name' => 'posixGroup_minGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'), - - 2 => array('kind' => 'text', 'value' => ' '), - - 3 => array('kind' => 'text', 'text' => '<b>' . + + array('kind' => 'text', 'value' => +' '), + + array('kind' => 'text', 'text' => +'<b>' . _('Maximum GID number') . " *: </b>"), - - 4 => array('kind' => 'input', 'name' => + array('kind' => 'input', 'name' => 'posixGroup_maxGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'), - - 5 => array('kind' => 'help', 'value' => 'minMaxGID')), + + array('kind' => 'help', 'value' => +'minMaxGID')), array( - - 0 => array('kind' => 'text', 'text' => '<b>' . + + array('kind' => 'text', 'text' => +'<b>' . _("Password hash type") . ': </b>'), - - 1 => array('kind' => 'select', 'name' => -'posixGroup_pwdHash', 'size' => '1', - - 'options' => array("CRYPT", "SHA", "SSHA", "MD5", "SMD5", + array('kind' => 'select', 'name' => +'posixGroup_pwdHash', 'size' => '1', 'options' => array("CRYPT", "SHA", "SSHA", "MD5", "SMD5", "PLAIN"), 'options_selected' => array('SSHA')), - - 2 => array('kind' => 'text', 'value' => ' '), - - 3 => array('kind' => 'text', 'value' => ' '), - - 4 => array('kind' => 'text', 'value' => ' '), - - 5 => array('kind' => 'help', 'value' => 'pwdHash')) + + array('kind' => 'text', 'value' => +' '), + + array('kind' => 'text', 'value' => +' '), + + array('kind' => 'text', 'value' => +' '), + array('kind' => 'help', 'value' => 'pwdHash')) ); [...] |
@@ -108,22 +104,19 @@ the browser.
/** @@ -136,9 +129,7 @@ class get_metaData() { $return = array(); // configuration checks - $return['config_checks']['group']['posixGroup_minGID'] = + $return['config_checks']['group']['posixGroup_minGID'] = array ( 'type' => 'ext_preg', @@ -150,9 +141,7 @@ array ( 'required_message' => $this->messages['gidNumber'][5], 'error_message' => $this->messages['gidNumber'][5]); - $return['config_checks']['group']['posixGroup_maxGID'] = + $return['config_checks']['group']['posixGroup_maxGID'] = array ( 'type' => 'ext_preg', @@ -164,9 +153,7 @@ array ( 'required_message' => $this->messages['gidNumber'][6], 'error_message' => $this->messages['gidNumber'][6]); - $return['config_checks']['group']['cmpGID'] = array ( + $return['config_checks']['group']['cmpGID'] = array ( 'type' => 'int_greater', 'cmp_name1' @@ -182,9 +169,7 @@ array ( |
/** @@ -49,29 +46,28 @@ class get_metaData() { $return = array(); // profile elements - $return['profile_options'] = array( + $return['profile_options'] = array( array( - 0 => array('kind' => 'text', 'text' => + array('kind' => 'text', 'text' => _('Job title') . ":"), - 1 => array('kind' => 'input', 'name' => + array('kind' => 'input', 'name' => 'inetOrgPerson_title', 'type' => 'text', 'size' => '30', 'maxlength' => '255'), - 2 => array('kind' => 'help', 'value' => + array('kind' => 'help', 'value' => 'title')), array( - 0 => array('kind' => 'text', 'text' => + array('kind' => 'text', 'text' => _('Employee type') . ":"), - 1 => array('kind' => 'input', 'name' => + array('kind' => 'input', 'name' => 'inetOrgPerson_employeeType', 'type' => 'text', 'size' => '30', 'maxlength' => '255'), - 2 => array('kind' => 'help', 'value' => + array('kind' => 'help', 'value' => 'employeeType')) ); [...] @@ -90,22 +86,19 @@ of the input element might be not enough. Probably you also want to check if the input data is syntactically correct. The baseModule already -provides different checks which can be activated with meta data. However you can also do +provides different checks which can be activated with meta data. However you can also do the checking in the module. Implementing the function check_profileOptions() in your module will allow you to do the checks yourself. Basic checks can be defined with meta['profile_checks']. -Example: +Example: The inetOrgPerson module only needs some regular expression checks on the input. This can be done by the baseModule. -
The type "ext_preg" means that -the baseModule will use the get_preg() function in lib/account.inc for the syntax +the baseModule will use the get_preg() function in lib/account.inc for the syntax check. This function already contains regular expressions for the most common cases. @@ -157,22 +144,18 @@ they need for their internal data structures. The baseModule already provides the possibility to store profile values directly as LDAP attributes in $this->attributes. -This is done by defining profile-attribute mappings in meta['profile_mappings']. +This is done by defining profile-attribute mappings in meta['profile_mappings']. If you have other values than LDAP attributes or need some post -processing you can implement the function load_profile() in your module. +processing you can implement the function load_profile() in your module. -Example: +Example: The inetLocalMailRecipient module only needs a static mapping. This can be done by the baseModule. -
|