ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
GUI class for personal profile. More...
Public Member Functions | |
__construct (\ilTermsOfServiceDocumentEvaluation $termsOfServiceEvaluation=null) | |
constructor More... | |
workWithUserSetting ($setting) | |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise. More... | |
userSettingVisible ($setting) | |
Returns TRUE if user setting is visible, FALSE otherwise. More... | |
userSettingEnabled ($setting) | |
Returns TRUE if user setting is enabled, FALSE otherwise. More... | |
uploadUserPicture () | |
Upload user image. More... | |
removeUserPicture () | |
remove user image More... | |
saveProfile () | |
save user profile data More... | |
showProfile () | |
show profile form More... | |
addLocationToForm (ilPropertyFormGUI $a_form, ilObjUser $a_user) | |
Add location fields to form if activated. More... | |
setTabs () | |
__showOtherInformations () | |
__showUserDefinedFields () | |
__checkUserDefinedRequiredFields () | |
setHeader () | |
Set header. More... | |
showPersonalData ($a_no_init=false, $a_migration_started=false) | |
Personal data form. More... | |
initPersonalDataForm () | |
Init personal form. More... | |
savePersonalData () | |
Save personal data form. More... | |
showPublicProfile ($a_no_init=false) | |
Public profile form. More... | |
initPublicProfileForm () | |
Init public profile form. More... | |
showPublicProfileFields (ilPropertyformGUI $form, array $prefs, $parent=null, $anonymized=false) | |
Add fields to form. More... | |
savePublicProfile () | |
Save public profile form. More... | |
showExportImport () | |
Show export/import. More... | |
exportPersonalData () | |
Export personal data. More... | |
downloadPersonalData () | |
Download personal data export file. More... | |
importPersonalDataSelection () | |
Import personal data selection. More... | |
initPersonalDataImportForm () | |
Init personal data import form. More... | |
importPersonalData () | |
Import personal data. More... | |
Data Fields | |
$tpl | |
$lng | |
$ilias | |
$ctrl | |
$user_defined_fields = null | |
Protected Member Functions | |
showUserAgreement () | |
getProfilePortfolio () | |
has profile set to a portfolio? More... | |
renderCertificateMigration (\ilObjUser $user, bool $migrationIsStartedInRequest) | |
Protected Attributes | |
$tabs | |
$termsOfServiceEvaluation | |
GUI class for personal profile.
ilPersonalProfileGUI: ilPublicUserProfileGUI, ilCertificateMigrationGUI
Definition at line 12 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::__construct | ( | \ilTermsOfServiceDocumentEvaluation | $termsOfServiceEvaluation = null | ) |
constructor
\ilTermsOfServiceDocumentEvaluation | null | $termsOfServiceEvaluation |
Definition at line 31 of file class.ilPersonalProfileGUI.php.
References $_GET, $DIC, $ilCtrl, $ilias, $ilUser, $lng, $termsOfServiceEvaluation, $tpl, ilUserDefinedFields\_getInstance(), ilTemplate\MESSAGE_TYPE_SUCCESS, setTabs(), settings(), and showPersonalData().
ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 685 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 620 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 630 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $name, ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
ilPersonalProfileGUI::addLocationToForm | ( | ilPropertyFormGUI | $a_form, |
ilObjUser | $a_user | ||
) |
Add location fields to form if activated.
ilPropertyFormGUI | $a_form | |
ilObjUser | $a_user |
Definition at line 520 of file class.ilPersonalProfileGUI.php.
References $def, $DIC, $ilCtrl, ilPropertyFormGUI\addItem(), ilObjUser\getCity(), ilObjUser\getCountry(), ilMapUtil\getDefaultSettings(), ilObjUser\getLatitude(), ilObjUser\getLocationZoom(), ilObjUser\getLongitude(), ilObjUser\getStreet(), ilMapUtil\isActivated(), and ilLocationInputGUI\setLatitude().
Referenced by initPersonalDataForm().
ilPersonalProfileGUI::downloadPersonalData | ( | ) |
Download personal data export file.
Definition at line 1375 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::exportPersonalData | ( | ) |
Export personal data.
Definition at line 1357 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilCtrl, and $ilUser.
|
protected |
has profile set to a portfolio?
Definition at line 993 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, and ilObjPortfolio\getDefaultPortfolio().
Referenced by initPublicProfileForm(), and setTabs().
ilPersonalProfileGUI::importPersonalData | ( | ) |
Import personal data.
Definition at line 1464 of file class.ilPersonalProfileGUI.php.
References $_POST, $DIC, $ilCtrl, $ilUser, $tpl, initPersonalDataImportForm(), and setHeader().
ilPersonalProfileGUI::importPersonalDataSelection | ( | ) |
Import personal data selection.
Definition at line 1390 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilCtrl, $lng, $tpl, initPersonalDataImportForm(), and setHeader().
ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 768 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, $lng, addLocationToForm(), ilCustomUserFieldsHelper\getInstance(), and input.
Referenced by savePersonalData(), and showPersonalData().
ilPersonalProfileGUI::initPersonalDataImportForm | ( | ) |
Init personal data import form.
Definition at line 1414 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilCtrl, $lng, ilFormPropertyGUI\setRequired(), and ilFormPropertyGUI\setTitle().
Referenced by importPersonalData(), and importPersonalDataSelection().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
int | $a_mode | Edit Mode |
Definition at line 1011 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, $info, $lng, getProfilePortfolio(), ilFormPropertyGUI\setInfo(), and showPublicProfileFields().
Referenced by savePublicProfile(), and showPublicProfile().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 221 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, and saveProfile().
|
protected |
Definition at line 1498 of file class.ilPersonalProfileGUI.php.
References ilObject\getId().
Referenced by showPersonalData().
ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 823 of file class.ilPersonalProfileGUI.php.
References $DIC, $f, $ilCtrl, $ilSetting, $ilUser, $lng, $location, $m, $map, $tpl, ilObjUser\_loginExists(), IL_CAL_DATE, initPersonalDataForm(), ilMapUtil\isActivated(), ilUtil\isLogin(), ilUtil\sendFailure(), showPersonalData(), ilUtil\stripSlashes(), and uploadUserPicture().
ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 237 of file class.ilPersonalProfileGUI.php.
References $_POST, $DIC, $GLOBALS, $ilSetting, $ilUser, $key, __checkUserDefinedRequiredFields(), ilUtil\is_email(), ilUtil\sendFailure(), settings(), showProfile(), ilUtil\stripSlashes(), ilLuceneIndexer\updateLuceneIndex(), and workWithUserSetting().
Referenced by removeUserPicture().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1232 of file class.ilPersonalProfileGUI.php.
References $_POST, $_SESSION, $DIC, $GLOBALS, $handler, $ilCtrl, $ilUser, $key, $lng, $target, $tpl, ilSession\get(), ilBadgeHandler\getInstance(), initPublicProfileForm(), ilUtil\redirect(), ilSession\set(), ilLuceneIndexer\updateLuceneIndex(), and ilBadgeAssignment\updatePositions().
ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 699 of file class.ilPersonalProfileGUI.php.
Referenced by importPersonalData(), importPersonalDataSelection(), showExportImport(), showPersonalData(), and showPublicProfile().
ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 575 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, and getProfilePortfolio().
Referenced by __construct().
ilPersonalProfileGUI::showExportImport | ( | ) |
Show export/import.
Definition at line 1316 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilCtrl, $ilUser, $tpl, ilLinkButton\getInstance(), and setHeader().
ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false , |
|
$a_migration_started = false |
|||
) |
Personal data form.
Definition at line 713 of file class.ilPersonalProfileGUI.php.
References $_GET, $ctrl, $DIC, $ilUser, $lng, initPersonalDataForm(), renderCertificateMigration(), ilUtil\sendInfo(), and setHeader().
Referenced by __construct(), savePersonalData(), and showProfile().
ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 478 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 962 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, $lng, initPublicProfileForm(), and setHeader().
ilPersonalProfileGUI::showPublicProfileFields | ( | ilPropertyformGUI | $form, |
array | $prefs, | ||
$parent = null , |
|||
$anonymized = false |
|||
) |
Add fields to form.
ilPropertyformGUI | $form | |
array | $prefs | |
object | $parent | |
bool | $a_anonymized |
Definition at line 1082 of file class.ilPersonalProfileGUI.php.
References $DIC, $handler, $ilUser, $key, ilDatePresentation\formatDate(), ilBadgeHandler\getInstance(), ilBadgeAssignment\getInstancesByUserId(), ilBadge\getTitle(), IL_CAL_DATE, ilMapUtil\isActivated(), ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setMultiValues(), and userSettingVisible().
Referenced by initPublicProfileForm().
|
protected |
Definition at line 486 of file class.ilPersonalProfileGUI.php.
References $tpl, ilSystemSupportContacts\getMailToAddress(), ilTermsOfServiceHelper\isEnabled(), and ilUtil\prepareFormOutput().
ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Upload user image.
Definition at line 154 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, ilUtil\escapeShellArg(), ilUtil\execConvert(), ilUtil\getWebspaceDir(), ilUtil\isConvertVersionAtLeast(), ilUtil\sendFailure(), and workWithUserSetting().
Referenced by savePersonalData().
ilPersonalProfileGUI::userSettingEnabled | ( | $setting | ) |
Returns TRUE if user setting is enabled, FALSE otherwise.
Definition at line 142 of file class.ilPersonalProfileGUI.php.
References $result, and settings().
ilPersonalProfileGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 128 of file class.ilPersonalProfileGUI.php.
References $result, and settings().
Referenced by __showOtherInformations(), and showPublicProfileFields().
ilPersonalProfileGUI::workWithUserSetting | ( | $setting | ) |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
Definition at line 112 of file class.ilPersonalProfileGUI.php.
References $result, and settings().
Referenced by saveProfile(), and uploadUserPicture().
ilPersonalProfileGUI::$ctrl |
Definition at line 17 of file class.ilPersonalProfileGUI.php.
Referenced by showPersonalData().
ilPersonalProfileGUI::$ilias |
Definition at line 16 of file class.ilPersonalProfileGUI.php.
Referenced by __construct().
ilPersonalProfileGUI::$lng |
Definition at line 15 of file class.ilPersonalProfileGUI.php.
Referenced by __construct(), importPersonalDataSelection(), initPersonalDataForm(), initPersonalDataImportForm(), initPublicProfileForm(), savePersonalData(), savePublicProfile(), showPersonalData(), and showPublicProfile().
|
protected |
Definition at line 22 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 25 of file class.ilPersonalProfileGUI.php.
Referenced by __construct().
ilPersonalProfileGUI::$tpl |
Definition at line 14 of file class.ilPersonalProfileGUI.php.
Referenced by __construct(), importPersonalData(), importPersonalDataSelection(), savePersonalData(), savePublicProfile(), showExportImport(), and showUserAgreement().
ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 19 of file class.ilPersonalProfileGUI.php.