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);
56 #$fields[0]['values'] = array();
57 #$fields[0]['type'] = FIELD_TYPE_TEXT;
58 #$fields[0]['lang'] = $this->lng->txt('login');
59 #$fields[0]['db'] = 'login';
71 $fields[$counter][
'values'] = array();
73 $fields[$counter][
'lang'] = $this->lng->txt($field);
74 $fields[$counter][
'db'] = $field;
77 if($field ==
'gender')
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][
'lang'] = $lng->txt(
'person_title');
101 return $fields ? $fields : array();
106 if ($a_admin ===
true)
125 return array(
'gender',
151 if($a_key ==
'login')
156 return (
bool) $ilias->getSetting(
'search_enabled_'.$a_key);
163 $ilias->setSetting(
'search_enabled_'.$a_key,(
int) $a_enabled);
169 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
173 foreach($user_defined_fields->getSearchableDefinitions() as $definition)
176 $fields[$counter][
'lang'] = $definition[
'field_name'];
177 $fields[$counter][
'db'] = $definition[
'field_id'];
179 switch($definition[
'field_type'])
191 return $fields ? $fields : array();
196 $new_values = array(0 => $this->lng->txt(
'please_choose'));
197 foreach($a_values as $value)
199 $new_values[$value] = $value;
201 return $new_values ? $new_values : array();