/** * 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"), ) ); [...] |