5 include_once
'Services/Mail/classes/class.ilMailOptions.php';
46 "method" =>
"getLogin",
47 "course_export_fix_value" => 1,
48 "changeable_hide" =>
true,
49 "required_hide" =>
true,
50 "group" =>
"personal_data"),
55 "method" =>
"getFirstname",
56 "required_fix_value" => 1,
57 "visib_reg_fix_value" => 1,
58 "course_export_fix_value" => 1,
59 "group" =>
"personal_data"),
64 "method" =>
"getLastname",
65 "required_fix_value" => 1,
66 "visib_reg_fix_value" => 1,
67 "course_export_fix_value" => 1,
68 "group" =>
"personal_data"),
71 "lang_var" =>
"person_title",
74 "method" =>
"getUTitle",
75 "group" =>
"personal_data"),
77 "input" =>
"birthday",
78 "lang_var" =>
"birthday",
81 "registration_hide" =>
true,
82 "method" =>
"getBirthday",
83 "group" =>
"personal_data"),
86 "values" => array(
"f" =>
"gender_f",
"m" =>
"gender_m"),
87 "method" =>
"getGender",
88 "group" =>
"personal_data"),
91 "required_hide" =>
true,
92 "registration_hide" =>
true,
93 "course_export_hide" =>
true,
94 "lang_var" =>
"personal_picture",
95 "group" =>
"personal_data"),
98 "changeable_hide" =>
true,
99 "required_hide" =>
true,
100 "registration_hide" =>
true,
101 "export_hide" =>
true,
102 "course_export_hide" =>
true,
103 "group" =>
"personal_data"),
105 "input" =>
"password",
106 "required_hide" =>
true,
107 "registration_hide" =>
true,
108 "course_export_hide" =>
true,
109 "group" =>
"personal_data"),
110 "institution" => array(
114 "method" =>
"getInstitution",
115 "group" =>
"contact_data"),
116 "department" => array(
120 "method" =>
"getDepartment",
121 "group" =>
"contact_data"),
126 "method" =>
"getStreet",
127 "group" =>
"contact_data"),
132 "method" =>
"getZipcode",
133 "group" =>
"contact_data"),
138 "method" =>
"getCity",
139 "group" =>
"contact_data"),
144 "method" =>
"getCountry",
145 "group" =>
"contact_data"),
146 "phone_office" => array(
150 "method" =>
"getPhoneOffice",
151 "group" =>
"contact_data"),
152 "phone_home" => array(
156 "method" =>
"getPhoneHome",
157 "group" =>
"contact_data"),
158 "phone_mobile" => array(
162 "method" =>
"getPhoneMobile",
163 "group" =>
"contact_data"),
168 "method" =>
"getFax",
169 "group" =>
"contact_data"),
174 "method" =>
"getEmail",
175 "group" =>
"contact_data"),
177 "input" =>
"textarea",
180 "method" =>
"getHobby",
181 "group" =>
"contact_data"),
182 "referral_comment" => array(
183 "input" =>
"textarea",
186 "method" =>
"getComment",
187 "course_export_hide" =>
true,
188 "group" =>
"contact_data"),
189 "instant_messengers" => array(
190 "input" =>
"messenger",
191 "types" => array(
"icq",
"yahoo",
"msn",
"aim",
"skype",
"jabber",
"voip"),
194 "registration_hide" =>
true,
195 "course_export_hide" =>
true,
196 "group" =>
"instant_messengers"),
197 "matriculation" => array(
201 "method" =>
"getMatriculation",
203 "delicious" => array(
207 "method" =>
"getDelicious",
210 "input" =>
"language",
211 "method" =>
"getLanguage",
212 "required_hide" =>
true,
213 "registration_hide" =>
true,
214 "course_export_hide" =>
true,
215 "group" =>
"settings"),
216 "skin_style" => array(
217 "input" =>
"skinstyle",
218 "required_hide" =>
true,
219 "registration_hide" =>
true,
220 "course_export_hide" =>
true,
221 "group" =>
"settings"),
222 "hits_per_page" => array(
223 "input" =>
"hitsperpage",
226 10 => 10, 15 => 15, 20 => 20, 30 => 30, 40 => 40,
227 50 => 50, 100 => 100, 9999 => 9999),
228 "required_hide" =>
true,
229 "registration_hide" =>
true,
230 "course_export_hide" =>
true,
231 "group" =>
"settings"),
232 "show_users_online" => array(
233 "input" =>
"selection",
236 "y" =>
"users_online_show_short_y",
237 "associated" =>
"users_online_show_short_associated",
238 "n" =>
"users_online_show_short_n"),
239 "required_hide" =>
true,
240 "registration_hide" =>
true,
241 "course_export_hide" =>
true,
242 "group" =>
"settings"),
243 "hide_own_online_status" => array(
244 "input" =>
"selection",
245 "required_hide" =>
true,
246 "registration_hide" =>
true,
247 "course_export_hide" =>
true,
248 "group" =>
"settings"),
249 "preferences" => array(
250 "visible_fix_value" => 1,
251 "changeable_fix_value" => 1,
252 "required_hide" =>
true,
253 "registration_hide" =>
true,
254 "course_export_hide" =>
true,
255 "group" =>
"preferences"),
256 "mail_incoming_mail" => array(
257 "input" =>
"selection",
263 "required_hide" =>
true,
264 "registration_hide" =>
true,
265 "course_export_hide" =>
true,
266 "export_hide" =>
true,
267 "search_hide" =>
true,
268 "group" =>
"settings")
277 $this->skip_groups = array();
278 $this->skip_fields = array();
287 foreach (self::$user_field as
$f => $p)
290 if (in_array($p[
"group"], $this->skip_groups) ||
291 in_array(
$f, $this->skip_fields))
305 $this->skip_groups[] = $a_group;
313 $this->skip_fields[] = $a_field;
326 foreach ($fields as
$f => $p)
330 if (($p[
"group"] != $current_group) &&
335 $sh->setTitle($lng->txt($p[
"group"]));
336 $a_form->addItem($sh);
337 $current_group = $p[
"group"];
342 $lv = ($p[
"lang_var"] !=
"")
349 if ((
int)$ilSetting->get(
'allow_change_loginname'))
352 $val->
setValue($a_user->getLogin());
353 $val->setMaxLength(32);
355 $val->setRequired(
true);
361 $val->
setValue($a_user->getLogin());
363 $a_form->addItem($val);
371 $ti->setMaxLength($p[
"maxlength"]);
372 $ti->setSize($p[
"size"]);
373 $ti->setDisabled($ilSetting->get(
"usr_settings_disable_".$f));
374 $ti->setRequired($ilSetting->get(
"require_".$f));
375 $a_form->addItem($ti);
383 include_once
"./Services/Calendar/classes/class.ilDateTime.php";
384 if (strlen($a_user->$m()))
389 $bi->setShowEmpty(
true);
390 $bi->setStartYear(1900);
391 $bi->setDisabled($ilSetting->get(
"usr_settings_disable_".$f));
392 $bi->setRequired($ilSetting->get(
"require_".$f));
393 $a_form->addItem($bi);
402 foreach ($p[
"values"] as $k => $v)
407 $rg->
setDisabled($ilSetting->get(
"usr_settings_disable_".$f));
408 $rg->setRequired($ilSetting->get(
"require_".$f));
409 $a_form->addItem($rg);
419 $ii->setDisabled($ilSetting->get(
"usr_settings_disable_upload"));
423 $ii->setAlt($lng->txt(
"personal_picture"));
428 $ilSetting->get(
"ilinc_active"))
430 include_once (
'./Modules/ILinc/classes/class.ilObjiLincUser.php');
435 include_once (
'./Modules/ILinc/classes/class.ilnetucateXMLAPI.php');
437 $ilincAPI->uploadPicture($ilinc_user);
438 $response = $ilincAPI->sendRequest(
"uploadPicture");
441 $url = trim($response->data[
'url'][
'cdata']);
443 $lng->txt(
"ilinc_upload_pic_text").
" ".
444 '<a href="'.$url.
'">'.$lng->txt(
"ilinc_upload_pic_linktext").
'</a>';
449 $a_form->addItem($ii);
454 $global_roles = $rbacreview->getGlobalRoles();
455 foreach($global_roles as $role_id)
457 if (in_array($role_id,$rbacreview->assignedRoles($a_user->getId())))
459 $roleObj = $ilias->obj_factory->getInstanceByObjId($role_id);
460 $role_names .= $roleObj->getTitle().
", ";
465 $dr->
setValue(substr($role_names,0,-2));
466 $a_form->addItem($dr);
474 $em->setMaxLength($p[
"maxlength"]);
475 $em->setSize($p[
"size"]);
476 $em->setDisabled($ilSetting->get(
"usr_settings_disable_".$f));
477 $em->setRequired($ilSetting->get(
"require_".$f));
478 $a_form->addItem($em);
487 $ta->setRows($p[
"rows"]);
488 $ta->setCols($p[
"cols"]);
489 $ta->setDisabled($ilSetting->get(
"usr_settings_disable_".$f));
490 $ta->setRequired($ilSetting->get(
"require_".$f));
491 $a_form->addItem($ta);
498 $im_arr = $p[
"types"];
499 foreach ($im_arr as $im_name)
501 $im =
new ilTextInputGUI($lng->txt(
"im_".$im_name),
"usr_im_".$im_name);
502 $im->
setValue($a_user->getInstantMessengerId($im_name));
503 $im->setMaxLength($p[
"maxlength"]);
504 $im->setSize($p[
"size"]);
505 $im->setDisabled($ilSetting->get(
"usr_settings_disable_".
"instant_messengers"));
506 $im->setRequired($ilSetting->get(
"require_".
"instant_messengers"));
507 $a_form->addItem($im);
526 return ($ilSetting->get(
"usr_settings_hide_".$a_setting) != 1);