diff --git a/lam/docs/devel/mod_config.htm b/lam/docs/devel/mod_config.htm new file mode 100644 index 00000000..9aae47e0 --- /dev/null +++ b/lam/docs/devel/mod_config.htm @@ -0,0 +1,253 @@ + + +
+ /** + * Returns meta data that is interpreted by parent +class + * + * @return array array with meta data + */ + function +get_metaData() { + $return = array(); + // configuration options + $return['config_options']['group'] = array( + array( + + 0 => array('kind' => 'text', 'text' => '<b>' . +_('Minimum GID number') . " *: </b>"), + + 1 => array('kind' => 'input', 'name' => +'posixGroup_minGID', 'type' => 'text', 'size' => '10', +'maxlength' => '255'), + + 2 => array('kind' => 'text', 'value' => ' '), + + 3 => array('kind' => 'text', 'text' => '<b>' . +_('Maximum GID number') . " *: </b>"), + + 4 => array('kind' => 'input', 'name' => +'posixGroup_maxGID', 'type' => 'text', 'size' => '10', +'maxlength' => '255'), + + 5 => array('kind' => 'help', 'value' => 'minMaxGID')), + array( + + 0 => 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", +"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')) + ); + [...] + |
+
/** + * Returns meta data that is interpreted by parent +class + * + * @return array array with meta data + */ + function +get_metaData() { + $return = array(); + // configuration checks + $return['config_checks']['group']['posixGroup_minGID'] = +array ( + 'type' => +'ext_preg', + 'regex' => +'digit', + 'required' +=> true, + + 'required_message' => $this->messages['gidNumber'][5], + + 'error_message' => $this->messages['gidNumber'][5]); + $return['config_checks']['group']['posixGroup_maxGID'] = +array ( + 'type' => +'ext_preg', + 'regex' => +'digit', + 'required' +=> true, + + 'required_message' => $this->messages['gidNumber'][6], + + 'error_message' => $this->messages['gidNumber'][6]); + $return['config_checks']['group']['cmpGID'] = array ( + 'type' => +'int_greater', + 'cmp_name1' +=> 'posixGroup_maxGID', + 'cmp_name2' +=> 'posixGroup_minGID', + + 'error_message' => $this->messages['gidNumber'][7]); + [...] + |
+
/** + * Returns meta data that is interpreted by parent +class + * + * @return array array with meta data + */ + function +get_metaData() { + $return = array(); + // configuration descriptions + $return['config_descriptions'] = array( + 'legend' => +_("GID ranges for Unix groups"), + 'descriptions' +=> array( + + 'posixGroup_minGID' => _("Minimum GID number for Unix groups"), + + 'posixGroup_maxGID' => _("Maximum GID number for Unix groups"), + + 'posixGroup_pwdHash' => _("Password hash type for Unix +groups"), + ) + ); + [...] + |
+
/** + * Returns meta data that is interpreted by parent +class + * + * @return array array with meta data + */ + function +get_metaData() { + $return = array(); + // profile elements + $return['profile_options'] = array( + array( + + 0 => array('kind' => 'text', 'text' => +_('Job title') . ":"), + + 1 => array('kind' => 'input', 'name' => +'inetOrgPerson_title', 'type' => 'text', 'size' => '30', +'maxlength' => '255'), + + 2 => array('kind' => 'help', 'value' => +'title')), + array( + + 0 => array('kind' => 'text', 'text' => +_('Employee type') . ":"), + + 1 => array('kind' => 'input', 'name' => +'inetOrgPerson_employeeType', 'type' => 'text', 'size' => '30', +'maxlength' => '255'), + + 2 => array('kind' => 'help', 'value' => +'employeeType')) + ); + [...] + |
+
/** + * Returns meta data that is interpreted by parent +class + * + * @return array array with meta data + */ + function +get_metaData() { + $return = array(); + // profile checks + $return['profile_checks']['inetOrgPerson_title'] = array( + 'type' => +'ext_preg', + 'regex' => +'title', + + 'error_message' => $this->messages['title'][0]); + $return['profile_checks']['inetOrgPerson_employeeType'] = +array( + 'type' => +'ext_preg', + 'regex' => +'employeeType', + + 'error_message' => $this->messages['employeeType'][0]); + [...] + |
+