/** * Returns meta data that is interpreted by parent class * * @return array array with meta data */ function get_metaData() { $return = array(); // configuration options $configContainer = new htmlTable(); $configContainer->addElement(new htmlSubTitle(_("Groups")), true); $minGidInput = new htmlTableExtendedInputField(_('Minimum GID number'), 'posixGroup_minGID', null, 'minMaxGID'); $minGidInput->setRequired(true); $configContainer->addElement($minGidInput, true); $maxGidInput = new htmlTableExtendedInputField(_('Maximum GID number'), 'posixGroup_maxGID', null, 'minMaxGID'); $maxGidInput->setRequired(true); $configContainer->addElement($maxGidInput, true); $return['config_options']['group'] = $configContainer; [...] |
/** * 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]); [...] |