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;
70 if($field ==
'gender')
72 $fields[$counter][
'values'] = array(0 => $lng->txt(
'please_choose'),
73 'f' => $lng->txt(
'gender_f'),
74 'm' => $lng->txt(
'gender_m'));
79 $fields[$counter][
'lang'] = $lng->txt(
'person_title');
92 return $fields ? $fields : array();
97 if ($a_admin ===
true)
116 return array(
'gender',
142 if($a_key ==
'login')
147 return (
bool) $ilias->getSetting(
'search_enabled_'.$a_key);
154 $ilias->setSetting(
'search_enabled_'.$a_key,(
int) $a_enabled);
160 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
164 foreach($user_defined_fields->getSearchableDefinitions() as $definition)
167 $fields[$counter][
'lang'] = $definition[
'field_name'];
168 $fields[$counter][
'db'] = $definition[
'field_id'];
170 switch($definition[
'field_type'])
182 return $fields ? $fields : array();
187 $new_values = array(0 => $this->lng->txt(
'please_choose'));
188 foreach($a_values as $value)
190 $new_values[$value] = $value;
192 return $new_values ? $new_values : array();