29 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
36 $this->settings =
$ilias->getAllSettings();
37 $lng->loadLanguageModule(
"jsmath");
38 $lng->loadLanguageModule(
"pd");
39 $this->upload_error =
"";
40 $this->password_error =
"";
41 $lng->loadLanguageModule(
"user");
52 $next_class = $this->ctrl->getNextClass();
56 case "ilpublicuserprofilegui":
57 include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
60 $pub_profile_gui->setBackUrl(
$ilCtrl->getLinkTarget($this,
"showPersonalData"));
61 $ilCtrl->forwardCommand($pub_profile_gui);
67 $cmd = $this->ctrl->getCmd(
"showPersonalData");
82 if ($this->settings[
"usr_settings_hide_".$setting] == 1)
86 if ($this->settings[
"usr_settings_disable_".$setting] == 1)
100 if (isset($this->settings[
"usr_settings_hide_".$setting]) &&
101 $this->settings[
"usr_settings_hide_".$setting] == 1)
115 if ($this->settings[
"usr_settings_disable_".$setting] == 1)
131 if (!$this->form->hasFileUpload(
"userfile"))
133 if ($this->form->getItemByPostVar(
"userfile")->getDeletionFlag())
142 $image_dir = $webspace_dir.
"/usr_images";
143 $store_file =
"usr_".$ilUser->getID().
".".
"jpg";
146 $ilUser->setPref(
"profile_image", $store_file);
151 $pi = pathinfo($_FILES[
"userfile"][
"name"]);
152 $uploaded_file = $this->form->moveFileUpload($image_dir,
153 "userfile",
"upload_".
$ilUser->getId().
".".$pi[
"extension"]);
157 $this->ctrl->redirect($this,
"showProfile");
159 chmod($uploaded_file, 0770);
163 $show_file =
"$image_dir/usr_".$ilUser->getId().
".jpg";
164 $thumb_file =
"$image_dir/usr_".$ilUser->getId().
"_small.jpg";
165 $xthumb_file =
"$image_dir/usr_".$ilUser->getId().
"_xsmall.jpg";
166 $xxthumb_file =
"$image_dir/usr_".$ilUser->getId().
"_xxsmall.jpg";
175 ilUtil::execConvert($uploaded_file .
"[0] -geometry 200x200^ -gravity center -extent 200x200 -quality 100 JPEG:".$show_file);
176 ilUtil::execConvert($uploaded_file .
"[0] -geometry 100x100^ -gravity center -extent 100x100 -quality 100 JPEG:".$thumb_file);
177 ilUtil::execConvert($uploaded_file .
"[0] -geometry 75x75^ -gravity center -extent 75x75 -quality 100 JPEG:".$xthumb_file);
178 ilUtil::execConvert($uploaded_file .
"[0] -geometry 30x30^ -gravity center -extent 30x30 -quality 100 JPEG:".$xxthumb_file);
182 ilUtil::execConvert($uploaded_file .
"[0] -geometry 200x200 -quality 100 JPEG:".$show_file);
183 ilUtil::execConvert($uploaded_file .
"[0] -geometry 100x100 -quality 100 JPEG:".$thumb_file);
184 ilUtil::execConvert($uploaded_file .
"[0] -geometry 75x75 -quality 100 JPEG:".$xthumb_file);
185 ilUtil::execConvert($uploaded_file .
"[0] -geometry 30x30 -quality 100 JPEG:".$xxthumb_file);
221 if ((
$_POST[
"chk_pub"])==
"on")
223 $ilUser->setPref(
"public_profile",
"y");
227 $ilUser->setPref(
"public_profile",
"n");
231 $val_array = array(
"institution",
"department",
"upload",
"street",
232 "zip",
"city",
"country",
"phone_office",
"phone_home",
"phone_mobile",
233 "fax",
"email",
"hobby",
"matriculation");
236 foreach($val_array as $key => $value)
238 if ((
$_POST[
"chk_".$value]) ==
"on")
240 $ilUser->setPref(
"public_".$value,
"y");
244 $ilUser->setPref(
"public_".$value,
"n");
249 if ($d_set->get(
"user_profile"))
251 if ((
$_POST[
"chk_delicious"]) ==
"on")
253 $ilUser->setPref(
"public_delicious",
"y");
257 $ilUser->setPref(
"public_delicious",
"n");
263 foreach($this->settings as $key => $val)
265 if (substr($key,0,8) ==
"require_")
267 $require_keys[] = substr($key,8);
271 foreach($require_keys as $key => $val)
274 $system_fields = array(
"login",
"default_role",
"passwd",
"passwd2");
275 if (!in_array($val, $system_fields))
279 if (isset($this->settings[
"require_" . $val]) && $this->settings[
"require_" . $val])
281 if (empty(
$_POST[
"usr_" . $val]))
283 ilUtil::sendFailure($this->lng->txt(
"fill_out_all_required_fields") .
": " . $this->lng->txt($val));
319 $ilUser->setGender(
$_POST[
"usr_gender"]);
385 if ($d_set->get(
"user_profile"))
414 if (
$_POST[
"usr_skin_style"] !=
"")
416 $sknst = explode(
":",
$_POST[
"usr_skin_style"]);
418 if (
$ilUser->getPref(
"style") != $sknst[1] ||
419 $ilUser->getPref(
"skin") != $sknst[0])
421 $ilUser->setPref(
"skin", $sknst[0]);
422 $ilUser->setPref(
"style", $sknst[1]);
433 if (
$_POST[
"usr_language"] != $ilUser->getLanguage())
445 if (
$_POST[
"hits_per_page"] !=
"")
447 $ilUser->setPref(
"hits_per_page",
$_POST[
"hits_per_page"]);
460 if (
$_POST[
"chk_hide_own_online_status"] !=
"")
462 $ilUser->setPref(
"hide_own_online_status",
"y");
466 $ilUser->setPref(
"hide_own_online_status",
"n");
483 $ilUser->setProfileIncomplete(
false);
492 include_once
'./Services/Search/classes/Lucene/class.ilLuceneIndexer.php';
498 if (!empty($this->password_error))
502 elseif (!empty($this->upload_error))
510 $this->ctrl->redirect($this,
"");
543 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
550 $this->lng->loadLanguageModule(
"maps");
558 if ($latitude == 0 && $longitude == 0 && $zoom == 0)
561 $latitude = $def[
"latitude"];
562 $longitude = $def[
"longitude"];
563 $zoom = $def[
"zoom"];
569 $street = $this->lng->txt(
"street");
574 $city = $this->lng->txt(
"city");
579 $country = $this->lng->txt(
"country");
585 $loc_prop->setLatitude($latitude);
586 $loc_prop->setLongitude($longitude);
587 $loc_prop->setZoom($zoom);
588 $loc_prop->setAddress($street.
",".$city.
",".$country);
596 global $ilTabs,
$ilUser, $ilHelp;
598 $ilHelp->setScreenIdComponent(
"user");
601 $ilTabs->addTab(
"personal_data",
602 $this->lng->txt(
"personal_data"),
603 $this->ctrl->getLinkTarget($this,
"showPersonalData"));
606 $ilTabs->addTab(
"public_profile",
607 $this->lng->txt(
"public_profile"),
608 $this->ctrl->getLinkTarget($this,
"showPublicProfile"));
611 $ilTabs->addTab(
"export",
612 $this->lng->txt(
"export").
"/".$this->lng->txt(
"import"),
613 $this->ctrl->getLinkTarget($this,
"showExportImport"));
616 if((
$ilUser->getPref(
"public_profile") &&
617 $ilUser->getPref(
"public_profile") !=
"n") ||
618 $this->getProfilePortfolio())
621 $ilTabs->addNonTabbedLink(
"profile_preview",
622 $this->lng->txt(
"user_profile_preview"),
623 $this->ctrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"view"));
631 if($this->
userSettingVisible(
"matriculation") or count($this->user_defined_fields->getVisibleDefinitions())
632 or $d_set->get(
"user_profile") ==
"1")
643 $user_defined_data =
$ilUser->getUserDefinedData();
644 foreach($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition)
648 $this->tpl->setCurrentBlock(
"field_text");
650 if(!$definition[
'changeable'])
652 $this->tpl->setVariable(
"DISABLED_FIELD",
'disabled=\"disabled\"');
653 $this->tpl->setVariable(
"FIELD_NAME",
'udf['.$definition[
'field_id'].
']');
657 $this->tpl->setVariable(
"FIELD_NAME",
'udf['.$definition[
'field_id'].
']');
659 $this->tpl->parseCurrentBlock();
663 if($definition[
'changeable'])
665 $name =
'udf['.$definition[
'field_id'].
']';
673 $this->tpl->setCurrentBlock(
"field_select");
674 $this->tpl->setVariable(
"SELECT_BOX",
ilUtil::formSelect($user_defined_data[$field_id],
676 $this->user_defined_fields->fieldValuesToSelectArray(
677 $definition[
'field_values']),
679 true,0,
'',
'',$disabled));
680 $this->tpl->parseCurrentBlock();
682 $this->tpl->setCurrentBlock(
"user_defined");
684 if($definition[
'required'])
686 $name = $definition[
'field_name'].
"<span class=\"asterisk\">*</span>";
690 $name = $definition[
'field_name'];
692 $this->tpl->setVariable(
"TXT_FIELD_NAME",$name);
693 $this->tpl->parseCurrentBlock();
700 foreach($this->user_defined_fields->getVisibleDefinitions() as $definition)
702 $field_id = $definition[
'field_id'];
703 if($definition[
'required'] and !strlen(
$_POST[
'udf'][$field_id]))
716 $this->tpl->setTitle($this->lng->txt(
'personal_profile'));
732 $ilTabs->activateTab(
"personal_data");
734 $settings =
$ilias->getAllSettings();
742 if ($ilUser->getProfileIncomplete())
747 $this->tpl->setContent($this->form->getHTML());
759 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
761 $this->form->setFormAction($this->ctrl->getFormAction($this));
764 $user_defined_data =
$ilUser->getUserDefinedData();
766 foreach($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition)
770 $this->input[
"udf_".$definition[
'field_id']] =
771 new ilTextInputGUI($definition[
'field_name'],
"udf_".$definition[
'field_id']);
772 $this->input[
"udf_".$definition[
'field_id']]->setMaxLength(255);
773 $this->input[
"udf_".$definition[
'field_id']]->setSize(40);
777 $this->input[
"udf_".$definition[
'field_id']] =
779 $this->input[
"udf_".$definition[
'field_id']]->setUseRte(
true);
783 $options = $this->user_defined_fields->fieldValuesToSelectArray($definition[
'field_values']);
784 $this->input[
"udf_".$definition[
'field_id']] =
785 new ilSelectInputGUI($definition[
'field_name'],
"udf_".$definition[
'field_id']);
786 $this->input[
"udf_".$definition[
'field_id']]->setOptions(
$options);
789 $value = $user_defined_data[
"f_".$field_id];
790 $this->input[
"udf_".$definition[
'field_id']]->setValue($value);
792 if($definition[
'required'])
794 $this->input[
"udf_".$definition[
'field_id']]->setRequired(
true);
796 if(!$definition[
'changeable'] && (!$definition[
'required'] || $value))
798 $this->input[
"udf_".$definition[
'field_id']]->setDisabled(
true);
805 $this->input[
"udf_".$definition[
'field_id']]->setOptions(
$options);
810 include_once(
"./Services/User/classes/class.ilUserProfile.php");
812 $up->skipField(
"password");
813 $up->skipGroup(
"settings");
814 $up->skipGroup(
"preferences");
816 $up->setAjaxCallback(
817 $this->ctrl->getLinkTargetByClass(
'ilPublicUserProfileGUI',
'doProfileAutoComplete',
'',
true)
821 $up->addStandardFieldsToForm($this->form,
$ilUser, $this->input);
825 $this->form->addCommandButton(
"savePersonalData",
$lng->txt(
"save"));
838 if ($this->form->checkInput())
844 "firstname" =>
"FirstName",
845 "lastname" =>
"LastName",
847 "sel_country" =>
"SelectedCountry",
848 "phone_office" =>
"PhoneOffice",
849 "phone_home" =>
"PhoneHome",
850 "phone_mobile" =>
"PhoneMobile",
851 "referral_comment" =>
"Comment",
852 "interests_general" =>
"GeneralInterests",
853 "interests_help_offered" =>
"OfferingHelp",
854 "interests_help_looking" =>
"LookingForHelp"
856 include_once(
"./Services/User/classes/class.ilUserProfile.php");
858 foreach($up->getStandardFields() as $f => $p)
861 $item = $this->form->getItemByPostVar(
"usr_".$f);
862 if($item && !$item->getDisabled())
864 $value = $this->form->getInput(
"usr_".$f);
868 if (is_array($value))
870 if (is_array($value[
'date']))
872 if (($value[
'd'] > 0) && ($value[
'm'] > 0) && ($value[
'y'] > 0))
874 $ilUser->setBirthday(sprintf(
"%04d-%02d-%02d", $value[
'y'], $value[
'm'], $value[
'd']));
883 $ilUser->setBirthday($value[
'date']);
904 $ilUser->setInstantMessengerId(
'icq', $this->form->getInput(
"usr_im_icq"));
905 $ilUser->setInstantMessengerId(
'yahoo', $this->form->getInput(
"usr_im_yahoo"));
906 $ilUser->setInstantMessengerId(
'msn', $this->form->getInput(
"usr_im_msn"));
907 $ilUser->setInstantMessengerId(
'aim', $this->form->getInput(
"usr_im_aim"));
908 $ilUser->setInstantMessengerId(
'skype', $this->form->getInput(
"usr_im_skype"));
909 $ilUser->setInstantMessengerId(
'jabber', $this->form->getInput(
"usr_im_jabber"));
910 $ilUser->setInstantMessengerId(
'voip', $this->form->getInput(
"usr_im_voip"));
914 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
918 $location = $this->form->getInput(
"location");
922 $ilUser->setLatitude(is_numeric($lat) ? $lat :
null);
923 $ilUser->setLongitude(is_numeric($long) ? $long :
null);
924 $ilUser->setLocationZoom(is_numeric($zoom) ? $zoom :
null);
928 $defs = $this->user_defined_fields->getVisibleDefinitions();
930 foreach ($defs as $definition)
932 $f =
"udf_".$definition[
'field_id'];
933 $item = $this->form->getItemByPostVar($f);
934 if ($item && !$item->getDisabled())
936 $udf[$definition[
'field_id']] = $this->form->getInput($f);
939 $ilUser->setUserDefinedData($udf);
942 $un = $this->form->getInput(
'username');
943 if((
int)
$ilSetting->get(
'allow_change_loginname') &&
949 $this->form->getItemByPostVar(
'username')->setAlert($this->lng->txt(
'login_invalid'));
955 $this->form->getItemByPostVar(
'username')->setAlert($this->lng->txt(
'loginname_already_exists'));
965 $ilAuth->setAuth(
$ilUser->getLogin());
971 $this->form->getItemByPostVar(
'username')->setAlert($e->getMessage());
983 $ilUser->setProfileIncomplete(
false);
1001 unset(
$_SESSION[
'profile_complete_redirect']);
1006 $ilCtrl->redirect($this,
"showPersonalData");
1011 $this->form->setValuesByPost();
1028 $ilTabs->activateTab(
"public_profile");
1034 $this->initPublicProfileForm();
1037 $ptpl =
new ilTemplate(
"tpl.edit_personal_profile.html",
true,
true,
"Services/User");
1038 $ptpl->setVariable(
"FORM", $this->form->getHTML());
1039 include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
1041 $ptpl->setVariable(
"PREVIEW", $pub_profile->getEmbeddable());
1042 $this->tpl->setContent($ptpl->get());
1057 include_once
"Modules/Portfolio/classes/class.ilObjPortfolio.php";
1071 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1074 $this->form->setTitle(
$lng->txt(
"public_profile"));
1075 $this->form->setDescription(
$lng->txt(
"user_public_profile_info"));
1076 $this->form->setFormAction($this->ctrl->getFormAction($this));
1078 $portfolio_id = $this->getProfilePortfolio();
1084 $info = $this->lng->txt(
"user_activate_public_profile_info");
1085 $pub_prof = in_array(
$ilUser->prefs[
"public_profile"], array(
"y",
"n",
"g"))
1086 ?
$ilUser->prefs[
"public_profile"]
1088 if (!
$ilSetting->get(
'enable_global_profiles') && $pub_prof ==
"g")
1092 $radg->setValue($pub_prof);
1093 $op1 =
new ilRadioOption(
$lng->txt(
"usr_public_profile_disabled"),
"n",
$lng->txt(
"usr_public_profile_disabled_info"));
1094 $radg->addOption($op1);
1096 $radg->addOption($op2);
1097 if (
$ilSetting->get(
'enable_global_profiles'))
1100 $radg->addOption($op3);
1102 $this->form->addItem($radg);
1108 $prtf =
"<br />".$lng->txt(
"user_profile_portfolio");
1109 $prtf .=
"<br /><a href=\"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio\">» ".
1110 $lng->txt(
"user_portfolios").
"</a>";
1114 $radg->setInfo(
$info);
1118 $prtf =
$lng->txt(
"user_profile_portfolio_selected");
1119 $prtf .=
"<br /><a href=\"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio&prt_id=".$portfolio_id.
"\">» ".
1120 $lng->txt(
"portfolio").
"</a>";
1123 $info->setHTML($prtf);
1124 $this->form->addItem(
$info);
1127 $this->showPublicProfileFields($this->form,
$ilUser->prefs);
1129 $this->form->addCommandButton(
"savePublicProfile",
$lng->txt(
"save"));
1144 $birthday =
$ilUser->getBirthday();
1149 $gender =
$ilUser->getGender();
1152 $gender = $this->lng->txt(
"gender_".$gender);
1155 if (
$ilUser->getSelectedCountry() !=
"")
1157 $this->lng->loadLanguageModule(
"meta");
1158 $txt_sel_country = $this->lng->txt(
"meta_c_".
$ilUser->getSelectedCountry());
1165 $pic =
"<img src=\"".$pic.
"\" />";
1170 "title" =>
$ilUser->getUTitle(),
1171 "birthday" => $birthday,
1172 "gender" => $gender,
1174 "interests_general" =>
$ilUser->getGeneralInterestsAsText(),
1175 "interests_help_offered" =>
$ilUser->getOfferingHelpAsText(),
1176 "interests_help_looking" =>
$ilUser->getLookingForHelpAsText(),
1177 "institution" =>
$ilUser->getInstitution(),
1178 "department" =>
$ilUser->getDepartment(),
1179 "street" =>
$ilUser->getStreet(),
1180 "zipcode" =>
$ilUser->getZipcode(),
1182 "country" =>
$ilUser->getCountry(),
1183 "sel_country" => $txt_sel_country,
1184 "phone_office" =>
$ilUser->getPhoneOffice(),
1185 "phone_home" =>
$ilUser->getPhoneHome(),
1186 "phone_mobile" =>
$ilUser->getPhoneMobile(),
1188 "email" =>
$ilUser->getEmail(),
1189 "hobby" =>
$ilUser->getHobby(),
1190 "matriculation" =>
$ilUser->getMatriculation(),
1191 "delicious" =>
$ilUser->getDelicious()
1195 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
1198 $val_array[
"location"] =
"";
1201 foreach($val_array as $key => $value)
1208 if ($this->userSettingVisible($key))
1214 $caption =
"personal_picture";
1218 $caption =
"person_title";
1225 if ($prefs[
"public_".$key] ==
"y")
1227 $cb->setChecked(
true);
1230 $cb->setOptionTitle($value);
1234 $form->addItem($cb);
1238 $parent->addSubItem($cb);
1243 $im_arr = array(
"icq",
"yahoo",
"msn",
"aim",
"skype",
"jabber",
"voip");
1244 if ($this->userSettingVisible(
"instant_messengers"))
1246 foreach ($im_arr as $im)
1251 $cb->setOptionTitle(
$ilUser->getInstantMessengerId($im));
1252 if ($prefs[
"public_im_".$im] !=
"n")
1254 $cb->setChecked(
true);
1259 $form->addItem($cb);
1263 $parent->addSubItem($cb);
1269 $user_defined_data = array();
1272 $user_defined_data =
$ilUser->getUserDefinedData();
1274 foreach($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition)
1277 $cb =
new ilCheckboxInputGUI($definition[
"field_name"],
"chk_udf_".$definition[
"field_id"]);
1278 $cb->setOptionTitle($user_defined_data[
"f_".$definition[
"field_id"]]);
1279 if ($prefs[
"public_udf_".$definition[
"field_id"]] ==
"y")
1281 $cb->setChecked(
true);
1286 $form->addItem($cb);
1290 $parent->addSubItem($cb);
1303 $this->initPublicProfileForm();
1304 if ($this->form->checkInput())
1307 if(isset(
$_POST[
"public_profile"]))
1309 $ilUser->setPref(
"public_profile",
$_POST[
"public_profile"]);
1313 $val_array = array(
"title",
"birthday",
"gender",
"institution",
"department",
"upload",
"street",
1314 "zipcode",
"city",
"country",
"sel_country",
"phone_office",
"phone_home",
"phone_mobile",
1315 "fax",
"email",
"hobby",
"matriculation",
"location",
1316 "interests_general",
"interests_help_offered",
"interests_help_looking");
1319 foreach($val_array as $key => $value)
1321 if ((
$_POST[
"chk_".$value]))
1323 $ilUser->setPref(
"public_".$value,
"y");
1327 $ilUser->setPref(
"public_".$value,
"n");
1331 $im_arr = array(
"icq",
"yahoo",
"msn",
"aim",
"skype",
"jabber",
"voip");
1332 if ($this->userSettingVisible(
"instant_messengers"))
1334 foreach ($im_arr as $im)
1336 if ((
$_POST[
"chk_im_".$im]))
1338 $ilUser->setPref(
"public_im_".$im,
"y");
1342 $ilUser->setPref(
"public_im_".$im,
"n");
1350 if ((
$_POST[
"chk_delicious"]))
1352 $ilUser->setPref(
"public_delicious",
"y");
1356 $ilUser->setPref(
"public_delicious",
"n");
1361 foreach($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition)
1363 if ((
$_POST[
"chk_udf_".$definition[
"field_id"]]))
1365 $ilUser->setPref(
"public_udf_".$definition[
"field_id"],
"y");
1369 $ilUser->setPref(
"public_udf_".$definition[
"field_id"],
"n");
1376 include_once
'./Services/Search/classes/Lucene/class.ilLuceneIndexer.php';
1380 $ilCtrl->redirect($this,
"showPublicProfile");
1382 $this->form->setValuesByPost();
1383 $tpl->showPublicProfile(
true);
1396 $ilTabs->activateTab(
"export");
1399 include_once
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
1401 $button->setCaption(
"pd_export_profile");
1402 $button->setUrl(
$ilCtrl->getLinkTarget($this,
"exportPersonalData"));
1403 $ilToolbar->addStickyItem($button);
1405 $exp_file =
$ilUser->getPersonalDataExportFile();
1406 if ($exp_file !=
"")
1408 $ilToolbar->addSeparator();
1409 $ilToolbar->addButton($this->lng->txt(
"pd_download_last_export_file"),
1410 $ilCtrl->getLinkTarget($this,
"downloadPersonalData"));
1413 $ilToolbar->addSeparator();
1414 $ilToolbar->addButton($this->lng->txt(
"pd_import_personal_data"),
1415 $ilCtrl->getLinkTarget($this,
"importPersonalDataSelection"));
1428 $ilUser->exportPersonalData();
1429 $ilUser->sendPersonalDataFile();
1430 $ilCtrl->redirect($this,
"showExportImport");
1443 $ilUser->sendPersonalDataFile();
1456 $ilTabs->activateTab(
"export");
1459 $this->initPersonalDataImportForm();
1461 $tpl->setContent($this->form->getHTML());
1475 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1480 $fi->setRequired(
true);
1481 $fi->setSuffixes(array(
"zip"));
1482 $this->form->addItem($fi);
1486 $this->form->addItem($cb);
1490 $this->form->addItem($cb);
1494 $this->form->addItem($cb);
1498 $this->form->addItem($cb);
1502 $this->form->addItem($cb);
1504 $this->form->addCommandButton(
"importPersonalData",
$lng->txt(
"import"));
1505 $this->form->addCommandButton(
"showExportImport",
$lng->txt(
"cancel"));
1507 $this->form->setTitle(
$lng->txt(
"pd_import_personal_data"));
1508 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
1523 $this->initPersonalDataImportForm();
1524 if ($this->form->checkInput())
1526 $ilUser->importPersonalData($_FILES[
"file"],
1527 (
int)
$_POST[
"profile_data"],
1528 (
int)
$_POST[
"settings"],
1529 (
int)
$_POST[
"bookmarks"],
1538 $ilTabs->activateTab(
"export");
1540 $this->form->setValuesByPost();
1541 $tpl->setContent($this->form->getHtml());
static formatDate(ilDateTime $date)
Format a date @access public.
static updateLuceneIndex($a_obj_ids)
Update lucene index.
static isActivated()
Checks whether Map feature is activated.
static getDefaultSettings()
Get default longitude, latitude and zoom.
static getDefaultPortfolio($a_user_id)
Get default portfolio of user.
getLatitude()
Get Latitude.
static _getPersonalPicturePath($a_usr_id, $a_size="small", $a_force_pic=false, $a_prevent_no_photo_image=false)
Get path to personal picture.
getCountry()
Get country (free text)
getLongitude()
Get Longitude.
getLocationZoom()
Get Location Zoom.
getStreet()
get street @access public
getCity()
get city @access public
static _loginExists($a_login, $a_user_id=0)
check if a login name already exists You may exclude a user from the check by giving his user id as 2...
GUI class for personal profile.
saveProfile()
save user profile data
workWithUserSetting($setting)
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
initPersonalDataImportForm()
Init personal data import form.
showPublicProfileFields(ilPropertyformGUI $form, array $prefs, $parent=null, $anonymized=false)
Add fields to form.
importPersonalData()
Import personal data.
showPersonalData($a_no_init=false)
Personal data form.
showPublicProfile($a_no_init=false)
Public profile form.
ilPersonalProfileGUI()
constructor
initPersonalDataForm()
Init personal form.
savePersonalData()
Save personal data form.
savePublicProfile()
Save public profile form.
exportPersonalData()
Export personal data.
userSettingVisible($setting)
Returns TRUE if user setting is visible, FALSE otherwise.
removeUserPicture()
remove user image
__checkUserDefinedRequiredFields()
getProfilePortfolio()
has profile set to a portfolio?
showExportImport()
Show export/import.
__showUserDefinedFields()
& executeCommand()
execute command
uploadUserPicture()
Upload user image.
downloadPersonalData()
Download personal data export file.
userSettingEnabled($setting)
Returns TRUE if user setting is enabled, FALSE otherwise.
__showOtherInformations()
importPersonalDataSelection()
Import personal data selection.
initPublicProfileForm()
Init public profile form.
showProfile()
show profile form
addLocationToForm(ilPropertyFormGUI $a_form, ilObjUser $a_user)
Add location fields to form if activated.
GUI class for public user profile presentation.
This class represents an option in a radio group.
static set($a_var, $a_val)
Set a value.
static get($a_var)
Get a value.
special template class to simplify handling of ITX/PEAR
This class represents a text area property in a property form.
This class represents a text property in a property form.
static _getInstance()
Get instance.
Class for user related exception handling in ILIAS.
static is_email($a_email)
This preg-based function checks whether an e-mail address is formally valid.
static isConvertVersionAtLeast($a_version)
Compare convert version numbers.
static escapeShellArg($a_arg)
static getWebspaceDir($mode="filesystem")
get webspace directory
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static execConvert($args)
execute convert command
static redirect($a_script)
http redirect to other script
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
redirection script todo: (a better solution should control the processing via a xml file)
if(!is_array($argv)) $options