33 define(
'FIELD_TYPE_UDF_SELECT',1);
34 define(
'FIELD_TYPE_UDF_TEXT',2);
35 define(
'FIELD_TYPE_SELECT',3);
36 define(
'FIELD_TYPE_TEXT',4);
64 $fields[$counter][
'values'] = array();
66 $fields[$counter][
'lang'] = $this->lng->txt($field);
67 $fields[$counter][
'db'] = $field;
72 $fields[$counter][
'lang'] = $lng->txt(
'person_title');
79 $fields[$counter][
'values'] = array(0 => $lng->txt(
'please_choose'),
80 'f' => $lng->txt(
'gender_f'),
81 'm' => $lng->txt(
'gender_m'));
86 $fields[$counter][
'values'] = array(0 => $lng->txt(
'please_choose'));
89 $lng->loadLanguageModule(
'meta');
90 include_once(
'./Services/Utilities/classes/class.ilCountry.php');
93 $fields[$counter][
'values'][$c] = $lng->txt(
'meta_c_'.$c);
95 asort($fields[$counter][
'values']);
113 return $fields ? $fields : array();
118 if ($a_admin ===
true)
138 return array(
'gender',
165 if($a_key ==
'login')
170 return (
bool) $ilias->getSetting(
'search_enabled_'.$a_key);
177 $ilias->setSetting(
'search_enabled_'.$a_key,(
int) $a_enabled);
183 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
187 foreach($user_defined_fields->getSearchableDefinitions() as $definition)
190 $fields[$counter][
'lang'] = $definition[
'field_name'];
191 $fields[$counter][
'db'] = $definition[
'field_id'];
193 switch($definition[
'field_type'])
205 return $fields ? $fields : array();
210 $new_values = array(0 => $this->lng->txt(
'please_choose'));
211 foreach($a_values as $value)
213 $new_values[$value] = $value;
215 return $new_values ? $new_values : array();