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);
38 define(
'FIELD_TYPE_MULTI', 5);
56 foreach (self::_getSearchableFieldsInfo($a_admin) as $field) {
57 if (is_numeric($field[
'db'])) {
58 $field[
'db'] =
'udf_' . $field[
'db'];
61 $col_info[$field[
'db']] = array(
62 'txt' => $field[
'lang']
65 if ($field[
'db'] ==
'login' or $field[
'db'] ==
'firstname' or $field[
'db'] ==
'lastname') {
66 $col_info[$field[
'db']][
'default'] =
true;
79 $lng->loadLanguageModule(
'user');
89 $fields[$counter][
'values'] = array();
91 $fields[$counter][
'lang'] =
$lng->txt($field);
92 $fields[$counter][
'db'] = $field;
97 $fields[$counter][
'autoComplete'] =
false;
104 $fields[$counter][
'autoComplete'] =
true;
108 $fields[$counter][
'lang'] =
$lng->txt(
'person_title');
115 $fields[$counter][
'values'] = array(
116 0 =>
$lng->txt(
'please_choose'),
117 'n' =>
$lng->txt(
'gender_n'),
118 'f' =>
$lng->txt(
'gender_f'),
119 'm' =>
$lng->txt(
'gender_m'),
125 $fields[$counter][
'values'] = array(0 =>
$lng->txt(
'please_choose'));
128 $lng->loadLanguageModule(
'meta');
129 include_once(
'./Services/Utilities/classes/class.ilCountry.php');
131 $fields[$counter][
'values'][
$c] =
$lng->txt(
'meta_c_' . $c);
133 asort($fields[$counter][
'values']);
139 include_once
'./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php';
147 $fields[$counter][
'values'] =
$options;
152 case 'interests_general':
153 case 'interests_help_offered':
154 case 'interests_help_looking':
177 return $fields ? $fields : array();
182 return array(
'gender',
201 'interests_help_offered',
202 'interests_help_looking' 216 $ilias = $DIC[
'ilias'];
219 if ($a_key ==
'login') {
223 return (
bool) $ilias->getSetting(
'search_enabled_' . $a_key);
230 $ilias = $DIC[
'ilias'];
232 $ilias->setSetting(
'search_enabled_' . $a_key, (
int) $a_enabled);
238 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
242 foreach ($user_defined_fields->getSearchableDefinitions() as $definition) {
244 $fields[$counter][
'lang'] = $definition[
'field_name'];
245 $fields[$counter][
'db'] = $definition[
'field_id'];
247 switch ($definition[
'field_type']) {
258 return $fields ? $fields : array();
267 $new_values = array(0 =>
$lng->txt(
'please_choose'));
268 foreach ($a_values as $value) {
269 $new_values[$value] = $value;
271 return $new_values ? $new_values : array();
static _isSearchable($a_key)
static _getInstance()
Get instance.
const FIELD_TYPE_UDF_TEXT
static _saveStatus($a_key, $a_enabled)
static getTextRepresentationOfOrgUnits($sort_by_title=true)
Get ref id path array.
static getSelectableColumnInfo($a_admin=false)
Get info of searchable fields for selectable columns in table gui.
const FIELD_TYPE_UDF_SELECT
Class ilUserSearchOptions.
static _getPossibleFields($a_admin=false)
static getCountryCodes()
Get country codes (DIN EN 3166-1)
static __prepareValues($a_values)
static _isEnabled($a_key)
static __appendUserDefinedFields($fields, $counter)
static _getSearchableFieldsInfo($a_admin=false)