40 $this->tabs = $DIC->tabs();
47 include_once
'./Services/User/classes/class.ilUserDefinedFields.php';
55 $lng->loadLanguageModule(
"jsmath");
56 $lng->loadLanguageModule(
"pd");
57 $this->upload_error =
"";
58 $this->password_error =
"";
59 $lng->loadLanguageModule(
"user");
60 $ilCtrl->saveParameter($this,
"prompted");
67 public function executeCommand()
74 $ilTabs = $DIC[
'ilTabs'];
77 $next_class = $this->ctrl->getNextClass();
79 switch ($next_class) {
80 case "ilpublicuserprofilegui":
81 include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
84 $pub_profile_gui->setBackUrl(
$ilCtrl->getLinkTarget($this,
"showPersonalData"));
85 $ilCtrl->forwardCommand($pub_profile_gui);
89 case 'ilcertificatemigrationgui':
90 $migrationGui = new \ilCertificateMigrationGUI();
91 $resultMessageString =
$ilCtrl->forwardCommand($migrationGui);
100 $cmd = $this->ctrl->getCmd(
"showPersonalData");
115 if ($this->
settings[
"usr_settings_hide_" . $setting] == 1) {
118 if ($this->
settings[
"usr_settings_disable_" . $setting] == 1) {
131 if (isset($this->
settings[
"usr_settings_hide_" . $setting]) &&
132 $this->
settings[
"usr_settings_hide_" . $setting] == 1) {
145 if ($this->
settings[
"usr_settings_disable_" . $setting] == 1) {
161 if (!$this->form->hasFileUpload(
"userfile")) {
162 if ($this->form->getItemByPostVar(
"userfile")->getDeletionFlag()) {
168 $image_dir = $webspace_dir .
"/usr_images";
169 $store_file =
"usr_" .
$ilUser->getID() .
"." .
"jpg";
172 $ilUser->setPref(
"profile_image", $store_file);
177 $pi = pathinfo($_FILES[
"userfile"][
"name"]);
178 $uploaded_file = $this->form->moveFileUpload(
181 "upload_" .
$ilUser->getId() .
"." . $pi[
"extension"]
183 if (!$uploaded_file) {
185 $this->ctrl->redirect($this,
"showProfile");
187 chmod($uploaded_file, 0770);
191 $show_file =
"$image_dir/usr_" .
$ilUser->getId() .
".jpg";
192 $thumb_file =
"$image_dir/usr_" .
$ilUser->getId() .
"_small.jpg";
193 $xthumb_file =
"$image_dir/usr_" .
$ilUser->getId() .
"_xsmall.jpg";
194 $xxthumb_file =
"$image_dir/usr_" .
$ilUser->getId() .
"_xxsmall.jpg";
202 ilUtil::execConvert($uploaded_file .
"[0] -geometry 200x200^ -gravity center -extent 200x200 -quality 100 JPEG:" . $show_file);
203 ilUtil::execConvert($uploaded_file .
"[0] -geometry 100x100^ -gravity center -extent 100x100 -quality 100 JPEG:" . $thumb_file);
204 ilUtil::execConvert($uploaded_file .
"[0] -geometry 75x75^ -gravity center -extent 75x75 -quality 100 JPEG:" . $xthumb_file);
205 ilUtil::execConvert($uploaded_file .
"[0] -geometry 30x30^ -gravity center -extent 30x30 -quality 100 JPEG:" . $xxthumb_file);
207 ilUtil::execConvert($uploaded_file .
"[0] -geometry 200x200 -quality 100 JPEG:" . $show_file);
208 ilUtil::execConvert($uploaded_file .
"[0] -geometry 100x100 -quality 100 JPEG:" . $thumb_file);
209 ilUtil::execConvert($uploaded_file .
"[0] -geometry 75x75 -quality 100 JPEG:" . $xthumb_file);
210 ilUtil::execConvert($uploaded_file .
"[0] -geometry 30x30 -quality 100 JPEG:" . $xxthumb_file);
251 if ((
$_POST[
"chk_pub"]) ==
"on") {
252 $ilUser->setPref(
"public_profile",
"y");
254 $ilUser->setPref(
"public_profile",
"n");
258 $val_array = array(
"institution",
"department",
"upload",
"street",
259 "zip",
"city",
"country",
"phone_office",
"phone_home",
"phone_mobile",
260 "fax",
"email",
"second_email",
"hobby",
"matriculation");
263 foreach ($val_array as
$key => $value) {
264 if ((
$_POST[
"chk_" . $value]) ==
"on") {
265 $ilUser->setPref(
"public_" . $value,
"y");
267 $ilUser->setPref(
"public_" . $value,
"n");
273 if (substr(
$key, 0, 8) ==
"require_") {
274 $require_keys[] = substr(
$key, 8);
278 foreach ($require_keys as
$key => $val) {
280 $system_fields = array(
"login",
"default_role",
"passwd",
"passwd2");
281 if (!in_array($val, $system_fields)) {
283 if (isset($this->
settings[
"require_" . $val]) && $this->
settings[
"require_" . $val]) {
284 if (empty(
$_POST[
"usr_" . $val])) {
285 ilUtil::sendFailure($this->lng->txt(
"fill_out_all_required_fields") .
": " . $this->lng->txt($val));
384 if (
$_POST[
"usr_skin_style"] !=
"") {
385 $sknst = explode(
":",
$_POST[
"usr_skin_style"]);
387 if (
$ilUser->getPref(
"style") != $sknst[1] ||
388 $ilUser->getPref(
"skin") != $sknst[0]) {
389 $ilUser->setPref(
"skin", $sknst[0]);
390 $ilUser->setPref(
"style", $sknst[1]);
409 if (
$_POST[
"hits_per_page"] !=
"") {
422 if (
$_POST[
"chk_hide_own_online_status"] !=
"") {
423 $ilUser->setPref(
"hide_own_online_status",
"y");
425 $ilUser->setPref(
"hide_own_online_status",
"n");
442 $ilUser->setProfileIncomplete(
false);
451 include_once
'./Services/Search/classes/Lucene/class.ilLuceneIndexer.php';
457 if (!empty($this->password_error)) {
459 } elseif (!empty($this->upload_error)) {
463 ilUtil::sendSuccess($this->lng->txt(
"saved_successfully"),
true);
464 $this->ctrl->redirect($this,
"");
466 ilUtil::sendSuccess($this->lng->txt(
"saved_successfully"),
true);
488 $this->tabs->clearTargets();
489 $this->tabs->clearSubTabs();
491 $tpl = new \ilTemplate(
'tpl.view_terms_of_service.html',
true,
true,
'Services/Init');
493 $this->tpl->setTitle($this->lng->txt(
'usr_agreement'));
496 if ($handleDocument) {
497 $document = $this->termsOfServiceEvaluation->document();
498 $tpl->setVariable(
'TERMS_OF_SERVICE_CONTENT', $document->content());
501 'TERMS_OF_SERVICE_CONTENT',
503 $this->lng->txt(
'no_agreement_description'),
509 $this->tpl->setContent(
$tpl->get());
510 $this->tpl->setPermanentLink(
'usr', null,
'agreement');
527 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
533 $this->lng->loadLanguageModule(
"maps");
541 if ($latitude == 0 && $longitude == 0 && $zoom == 0) {
543 $latitude =
$def[
"latitude"];
544 $longitude =
$def[
"longitude"];
545 $zoom =
$def[
"zoom"];
550 $street = $this->lng->txt(
"street");
554 $city = $this->lng->txt(
"city");
558 $country = $this->lng->txt(
"country");
563 $this->lng->txt(
"location"),
567 $loc_prop->setLongitude($longitude);
568 $loc_prop->setZoom($zoom);
569 $loc_prop->setAddress($street .
"," . $city .
"," . $country);
579 $ilTabs = $DIC[
'ilTabs'];
581 $ilHelp = $DIC[
'ilHelp'];
583 $ilHelp->setScreenIdComponent(
"user");
588 $this->lng->txt(
"personal_data"),
589 $this->ctrl->getLinkTarget($this,
"showPersonalData")
595 $this->lng->txt(
"public_profile"),
596 $this->ctrl->getLinkTarget($this,
"showPublicProfile")
602 $this->lng->txt(
"export") .
"/" . $this->lng->txt(
"import"),
603 $this->ctrl->getLinkTarget($this,
"showExportImport")
607 if ((
$ilUser->getPref(
"public_profile") &&
608 $ilUser->getPref(
"public_profile") !=
"n") ||
611 $ilTabs->addNonTabbedLink(
613 $this->lng->txt(
"user_profile_preview"),
614 $this->ctrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"view")
623 if ($this->
userSettingVisible(
"matriculation")
or count($this->user_defined_fields->getVisibleDefinitions())
624 or $d_set->get(
"user_profile") ==
"1") {
636 $user_defined_data =
$ilUser->getUserDefinedData();
637 foreach ($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition) {
639 $this->tpl->setCurrentBlock(
"field_text");
641 if (!$definition[
'changeable']) {
642 $this->tpl->setVariable(
"DISABLED_FIELD",
'disabled=\"disabled\"');
643 $this->tpl->setVariable(
"FIELD_NAME",
'udf[' . $definition[
'field_id'] .
']');
645 $this->tpl->setVariable(
"FIELD_NAME",
'udf[' . $definition[
'field_id'] .
']');
647 $this->tpl->parseCurrentBlock();
649 if ($definition[
'changeable']) {
650 $name =
'udf[' . $definition[
'field_id'] .
']';
656 $this->tpl->setCurrentBlock(
"field_select");
658 $user_defined_data[$field_id],
660 $this->user_defined_fields->fieldValuesToSelectArray(
661 $definition[
'field_values']
670 $this->tpl->parseCurrentBlock();
672 $this->tpl->setCurrentBlock(
"user_defined");
674 if ($definition[
'required']) {
675 $name = $definition[
'field_name'] .
"<span class=\"asterisk\">*</span>";
677 $name = $definition[
'field_name'];
679 $this->tpl->setVariable(
"TXT_FIELD_NAME",
$name);
680 $this->tpl->parseCurrentBlock();
687 foreach ($this->user_defined_fields->getVisibleDefinitions() as $definition) {
688 $field_id = $definition[
'field_id'];
689 if ($definition[
'required']
and !strlen(
$_POST[
'udf'][$field_id])) {
701 $this->tpl->setTitle($this->lng->txt(
'personal_profile'));
719 $ilTabs = $DIC[
'ilTabs'];
722 $ilTabs->activateTab(
"personal_data");
723 $ctrl = $DIC->ctrl();
727 if (
$_GET[
"prompted"] == 1) {
728 $it = $prompt_service->data()->getSettings()->getPromptText(
$ilUser->getLanguage());
731 $it = $prompt_service->data()->getSettings()->getInfoText(
$ilUser->getLanguage());
733 if (trim($it) !=
"") {
734 $pub_prof = in_array(
$ilUser->prefs[
"public_profile"], array(
"y",
"n",
"g"))
735 ?
$ilUser->prefs[
"public_profile"]
737 if ($pub_prof ==
"n") {
738 $button = $DIC->ui()->factory()->button()->shy(
739 "» " .
$lng->txt(
"user_make_profile_public"),
740 $ctrl->getLinkTarget($this,
"showPublicProfile")
742 $it .=
"<br><br>" . $DIC->ui()->renderer()->render($button);
753 if (
$ilUser->getProfileIncomplete()) {
760 $this->tpl->setContent($this->form->getHTML());
775 $styleDefinition = $DIC[
'styleDefinition'];
776 $rbacreview = $DIC[
'rbacreview'];
778 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
780 $this->form->setFormAction($this->ctrl->getFormAction($this));
783 $user_defined_data =
$ilUser->getUserDefinedData();
786 foreach ($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition) {
787 $value = $user_defined_data[
"f_" . $field_id];
789 include_once
'./Services/User/classes/class.ilCustomUserFieldsHelper.php';
792 $definition[
'changeable'],
796 $this->
input[
'udf_' . $definition[
'field_id']] = $fprop;
801 include_once(
"./Services/User/classes/class.ilUserProfile.php");
803 $up->skipField(
"password");
804 $up->skipGroup(
"settings");
805 $up->skipGroup(
"preferences");
807 $up->setAjaxCallback(
808 $this->ctrl->getLinkTargetByClass(
'ilPublicUserProfileGUI',
'doProfileAutoComplete',
'',
true)
812 $up->addStandardFieldsToForm($this->form,
$ilUser, $this->
input);
816 $this->form->addCommandButton(
"savePersonalData",
$lng->txt(
"save"));
834 if ($this->form->checkInput()) {
839 "firstname" =>
"FirstName",
840 "lastname" =>
"LastName",
842 "sel_country" =>
"SelectedCountry",
843 "phone_office" =>
"PhoneOffice",
844 "phone_home" =>
"PhoneHome",
845 "phone_mobile" =>
"PhoneMobile",
846 "referral_comment" =>
"Comment",
847 "interests_general" =>
"GeneralInterests",
848 "interests_help_offered" =>
"OfferingHelp",
849 "interests_help_looking" =>
"LookingForHelp" 851 include_once(
"./Services/User/classes/class.ilUserProfile.php");
853 foreach ($up->getStandardFields() as
$f => $p) {
855 $item = $this->form->getItemByPostVar(
"usr_" . $f);
856 if ($item && !$item->getDisabled()) {
857 $value = $this->form->getInput(
"usr_" . $f);
860 $value = $item->getDate();
866 $ilUser->setSecondEmail($value);
870 if (isset(
$map[$f])) {
881 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
884 $location = $this->form->getInput(
"location");
888 $ilUser->setLatitude(is_numeric($lat) ? $lat : null);
889 $ilUser->setLongitude(is_numeric($long) ? $long : null);
890 $ilUser->setLocationZoom(is_numeric($zoom) ? $zoom : null);
894 $defs = $this->user_defined_fields->getVisibleDefinitions();
896 foreach ($defs as $definition) {
897 $f =
"udf_" . $definition[
'field_id'];
898 $item = $this->form->getItemByPostVar(
$f);
899 if ($item && !$item->getDisabled()) {
900 $udf[$definition[
'field_id']] = $this->form->getInput(
$f);
903 $ilUser->setUserDefinedData($udf);
906 $un = $this->form->getInput(
'username');
907 if ((
int)
$ilSetting->get(
'allow_change_loginname') &&
911 $this->form->getItemByPostVar(
'username')->setAlert($this->lng->txt(
'login_invalid'));
915 $this->form->getItemByPostVar(
'username')->setAlert($this->lng->txt(
'loginname_already_exists'));
924 $this->form->getItemByPostVar(
'username')->setAlert($e->getMessage());
935 $ilUser->setProfileIncomplete(
false);
943 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
945 $ilCtrl->redirect($this,
"showPublicProfile");
949 $this->form->setValuesByPost();
969 $ilTabs = $DIC[
'ilTabs'];
971 $ilTabs->activateTab(
"public_profile");
979 $ptpl =
new ilTemplate(
"tpl.edit_personal_profile.html",
true,
true,
"Services/User");
980 $ptpl->setVariable(
"FORM", $this->form->getHTML());
981 include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
983 $ptpl->setVariable(
"PREVIEW", $pub_profile->getEmbeddable());
984 $this->tpl->setContent($ptpl->get());
1001 include_once
"Modules/Portfolio/classes/class.ilObjPortfolio.php";
1019 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1022 $this->form->setTitle(
$lng->txt(
"public_profile"));
1023 $this->form->setDescription(
$lng->txt(
"user_public_profile_info"));
1024 $this->form->setFormAction($this->ctrl->getFormAction($this));
1028 if (!$portfolio_id) {
1031 $info = $this->lng->txt(
"user_activate_public_profile_info");
1032 $pub_prof = in_array(
$ilUser->prefs[
"public_profile"], array(
"y",
"n",
"g"))
1033 ?
$ilUser->prefs[
"public_profile"]
1035 if (!
$ilSetting->get(
'enable_global_profiles') && $pub_prof ==
"g") {
1038 $radg->setValue($pub_prof);
1039 $op1 =
new ilRadioOption(
$lng->txt(
"usr_public_profile_disabled"),
"n",
$lng->txt(
"usr_public_profile_disabled_info"));
1040 $radg->addOption($op1);
1042 $radg->addOption($op2);
1043 if (
$ilSetting->get(
'enable_global_profiles')) {
1045 $radg->addOption($op3);
1047 $this->form->addItem($radg);
1052 $prtf =
"<br />" .
$lng->txt(
"user_profile_portfolio");
1053 $prtf .=
"<br /><a href=\"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio\">» " .
1054 $lng->txt(
"user_portfolios") .
"</a>";
1060 $prtf =
$lng->txt(
"user_profile_portfolio_selected");
1061 $prtf .=
"<br /><a href=\"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToPortfolio&prt_id=" . $portfolio_id .
"\">» " .
1062 $lng->txt(
"portfolio") .
"</a>";
1065 $info->setHTML($prtf);
1066 $this->form->addItem(
$info);
1071 $this->form->addCommandButton(
"savePublicProfile",
$lng->txt(
"save"));
1088 $birthday =
$ilUser->getBirthday();
1092 $gender =
$ilUser->getGender();
1094 $gender = $this->lng->txt(
"gender_" . $gender);
1097 if (
$ilUser->getSelectedCountry() !=
"") {
1098 $this->lng->loadLanguageModule(
"meta");
1099 $txt_sel_country = $this->lng->txt(
"meta_c_" .
$ilUser->getSelectedCountry());
1103 $pic = ilObjUser::_getPersonalPicturePath(
$ilUser->getId(),
"xsmall",
true,
true);
1105 $pic =
"<img src=\"" . $pic .
"\" />";
1110 "title" =>
$ilUser->getUTitle(),
1111 "birthday" => $birthday,
1112 "gender" => $gender,
1114 "interests_general" =>
$ilUser->getGeneralInterestsAsText(),
1115 "interests_help_offered" =>
$ilUser->getOfferingHelpAsText(),
1116 "interests_help_looking" =>
$ilUser->getLookingForHelpAsText(),
1117 "org_units" =>
$ilUser->getOrgUnitsRepresentation(),
1118 "institution" =>
$ilUser->getInstitution(),
1119 "department" =>
$ilUser->getDepartment(),
1120 "street" =>
$ilUser->getStreet(),
1121 "zipcode" =>
$ilUser->getZipcode(),
1123 "country" =>
$ilUser->getCountry(),
1124 "sel_country" => $txt_sel_country,
1125 "phone_office" =>
$ilUser->getPhoneOffice(),
1126 "phone_home" =>
$ilUser->getPhoneHome(),
1127 "phone_mobile" =>
$ilUser->getPhoneMobile(),
1129 "email" =>
$ilUser->getEmail(),
1130 "second_email" =>
$ilUser->getSecondEmail(),
1131 "hobby" =>
$ilUser->getHobby(),
1132 "matriculation" =>
$ilUser->getMatriculation()
1136 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
1138 $val_array[
"location"] =
"";
1141 foreach ($val_array as
$key => $value) {
1150 $caption =
"personal_picture";
1154 $caption =
"person_title";
1161 if ($prefs[
"public_" .
$key] ==
"y") {
1165 $cb->setOptionTitle($value);
1168 $form->addItem($cb);
1170 $parent->addSubItem($cb);
1176 $user_defined_data = array();
1178 $user_defined_data =
$ilUser->getUserDefinedData();
1180 foreach ($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition) {
1182 $cb =
new ilCheckboxInputGUI($definition[
"field_name"],
"chk_udf_" . $definition[
"field_id"]);
1183 $cb->setOptionTitle($user_defined_data[
"f_" . $definition[
"field_id"]]);
1184 if ($prefs[
"public_udf_" . $definition[
"field_id"]] ==
"y") {
1185 $cb->setChecked(
true);
1189 $form->addItem($cb);
1191 $parent->addSubItem($cb);
1197 include_once
"Services/Badge/classes/class.ilBadgeHandler.php";
1200 $badge_options = array();
1202 include_once
"Services/Badge/classes/class.ilBadgeAssignment.php";
1203 include_once
"Services/Badge/classes/class.ilBadge.php";
1206 if ($ass->getPosition()) {
1207 $badge =
new ilBadge($ass->getBadgeId());
1208 $badge_options[] = $badge->
getTitle();
1212 if (
sizeof($badge_options) > 1) {
1215 $badge_order->setValue(array_shift($badge_options));
1216 $badge_order->setMulti(
true,
true,
false);
1219 $form->addItem($badge_order);
1221 $parent->addSubItem($badge_order);
1242 if ($this->form->checkInput()) {
1244 if (isset(
$_POST[
"public_profile"])) {
1245 $ilUser->setPref(
"public_profile",
$_POST[
"public_profile"]);
1249 $val_array = array(
"title",
"birthday",
"gender",
"org_units",
"institution",
"department",
"upload",
1250 "street",
"zipcode",
"city",
"country",
"sel_country",
"phone_office",
"phone_home",
"phone_mobile",
1251 "fax",
"email",
"second_email",
"hobby",
"matriculation",
"location",
1252 "interests_general",
"interests_help_offered",
"interests_help_looking");
1255 foreach ($val_array as
$key => $value) {
1256 if ((
$_POST[
"chk_" . $value])) {
1257 $ilUser->setPref(
"public_" . $value,
"y");
1259 $ilUser->setPref(
"public_" . $value,
"n");
1264 foreach ($this->user_defined_fields->getVisibleDefinitions() as $field_id => $definition) {
1265 if ((
$_POST[
"chk_udf_" . $definition[
"field_id"]])) {
1266 $ilUser->setPref(
"public_udf_" . $definition[
"field_id"],
"y");
1268 $ilUser->setPref(
"public_udf_" . $definition[
"field_id"],
"n");
1275 include_once
"Services/Badge/classes/class.ilBadgeHandler.php";
1278 $badgePositions = [];
1279 if (isset(
$_POST[
"bpos"]) && is_array(
$_POST[
"bpos"])) {
1280 $badgePositions =
$_POST[
"bpos"];
1283 if (count($badgePositions) > 0) {
1284 include_once
"Services/Badge/classes/class.ilBadgeAssignment.php";
1290 include_once
'./Services/Search/classes/Lucene/class.ilLuceneIndexer.php';
1293 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
1299 } elseif ($redirect =
$_SESSION[
'profile_complete_redirect']) {
1300 unset(
$_SESSION[
'profile_complete_redirect']);
1303 $ilCtrl->redirect($this,
"showPublicProfile");
1306 $this->form->setValuesByPost();
1307 $tpl->showPublicProfile(
true);
1320 $ilToolbar = $DIC[
'ilToolbar'];
1323 $ilTabs = $DIC[
'ilTabs'];
1326 $ilTabs->activateTab(
"export");
1329 include_once
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
1331 $button->setCaption(
"pd_export_profile");
1332 $button->setUrl(
$ilCtrl->getLinkTarget($this,
"exportPersonalData"));
1333 $ilToolbar->addStickyItem($button);
1335 $exp_file =
$ilUser->getPersonalDataExportFile();
1336 if ($exp_file !=
"") {
1337 $ilToolbar->addSeparator();
1338 $ilToolbar->addButton(
1339 $this->lng->txt(
"pd_download_last_export_file"),
1340 $ilCtrl->getLinkTarget($this,
"downloadPersonalData")
1344 $ilToolbar->addSeparator();
1345 $ilToolbar->addButton(
1346 $this->lng->txt(
"pd_import_personal_data"),
1347 $ilCtrl->getLinkTarget($this,
"importPersonalDataSelection")
1364 $ilUser->exportPersonalData();
1365 $ilUser->sendPersonalDataFile();
1366 $ilCtrl->redirect($this,
"showExportImport");
1381 $ilUser->sendPersonalDataFile();
1397 $ilTabs = $DIC[
'ilTabs'];
1399 $ilTabs->activateTab(
"export");
1404 $tpl->setContent($this->form->getHTML());
1421 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1427 $fi->setSuffixes(array(
"zip"));
1428 $this->form->addItem($fi);
1432 $this->form->addItem($cb);
1436 $this->form->addItem($cb);
1440 $this->form->addItem($cb);
1444 $this->form->addItem($cb);
1448 $this->form->addItem($cb);
1450 $this->form->addCommandButton(
"importPersonalData",
$lng->txt(
"import"));
1451 $this->form->addCommandButton(
"showExportImport",
$lng->txt(
"cancel"));
1453 $this->form->
setTitle(
$lng->txt(
"pd_import_personal_data"));
1454 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
1471 $ilTabs = $DIC[
'ilTabs'];
1474 if ($this->form->checkInput()) {
1477 (
int)
$_POST[
"profile_data"],
1478 (
int) $_POST[
"settings"],
1479 (
int) $_POST[
"bookmarks"],
1480 (
int) $_POST[
"notes"],
1481 (
int) $_POST[
"calendar"]
1483 ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"),
true);
1486 $ilTabs->activateTab(
"export");
1488 $this->form->setValuesByPost();
1489 $tpl->setContent($this->form->getHtml());
1502 $showMigrationBox = $migrationVisibleValidator->isMigrationAvailable(
1506 if (!$migrationIsStartedInRequest &&
true === $showMigrationBox) {
1507 $migrationUiEl = new \ilCertificateMigrationUIElements();
1509 $startMigrationCommand = $this->ctrl->getLinkTargetByClass(
1510 [
'ilCertificateMigrationGUI'],
1511 'startMigrationAndReturnMessage',
1516 $messageBoxHtml = $migrationUiEl->getMigrationMessageBox($startMigrationCommand);
1518 $this->tpl->setCurrentBlock(
'mess');
1519 $this->tpl->setVariable(
'MESSAGE', $messageBoxHtml);
1520 $this->tpl->parseCurrentBlock(
'mess');
static isConvertVersionAtLeast($a_version)
Compare convert version numbers.
showPersonalData($a_no_init=false, $a_migration_started=false)
Personal data form.
Class for user related exception handling in ILIAS.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
showPublicProfile($a_no_init=false)
Public profile form.
This class represents an option in a radio group.
showPublicProfileFields(ilPropertyformGUI $form, array $prefs, $parent=null, $anonymized=false)
Add fields to form.
static _getInstance()
Get instance.
savePublicProfile()
Save public profile form.
importPersonalDataSelection()
Import personal data selection.
User profile prompt subservice.
static is_email($a_email, ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
This preg-based function checks whether an e-mail address is formally valid.
initPublicProfileForm()
Init public profile form.
saveProfile()
save user profile data
exportPersonalData()
Export personal data.
renderCertificateMigration(\ilObjUser $user, bool $migrationIsStartedInRequest)
initPersonalDataImportForm()
Init personal data import form.
static get($a_var)
Get a value.
getLocationZoom()
Get Location Zoom.
static set($a_var, $a_val)
Set a value.
static updateLuceneIndex($a_obj_ids)
Update lucene index.
__showOtherInformations()
importPersonalData()
Import personal data.
$termsOfServiceEvaluation
getLongitude()
Get Longitude.
Interface ilTermsOfServiceDocumentEvaluation.
getStreet()
get street public
getCountry()
Get country (free text)
getProfilePortfolio()
has profile set to a portfolio?
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
uploadUserPicture()
Upload user image.
Class ilCertificateMigration.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getInstance()
Get instance.
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...
userSettingEnabled($setting)
Returns TRUE if user setting is enabled, FALSE otherwise.
GUI class for public user profile presentation.
__showUserDefinedFields()
static execConvert($args)
execute convert command
if(isset($_POST['submit'])) $form
getId()
get object id public
downloadPersonalData()
Download personal data export file.
__checkUserDefinedRequiredFields()
special template class to simplify handling of ITX/PEAR
static getDefaultSettings()
Get default longitude, latitude and zoom.
redirection script todo: (a better solution should control the processing via a xml file) ...
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
savePersonalData()
Save personal data form.
getLatitude()
Get Latitude.
static isActivated()
Checks whether Map feature is activated.
initPersonalDataForm()
Init personal form.
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.
This class represents a non editable value in a property form.
showProfile()
show profile form
static escapeShellArg($a_arg)
const MESSAGE_TYPE_SUCCESS
static updatePositions($a_user_id, array $a_positions)
addLocationToForm(ilPropertyFormGUI $a_form, ilObjUser $a_user)
Add location fields to form if activated.
static getDefaultPortfolio($a_user_id)
Get default portfolio of user.
userSettingVisible($setting)
Returns TRUE if user setting is visible, FALSE otherwise.
static redirect($a_script)
__construct(\ilTermsOfServiceDocumentEvaluation $termsOfServiceEvaluation=null)
constructor
static getWebspaceDir($mode="filesystem")
get webspace directory
removeUserPicture()
remove user image
workWithUserSetting($setting)
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
static getInstancesByUserId($a_user_id)
showExportImport()
Show export/import.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
static getInstance()
Constructor.
GUI class for personal profile.