ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
GUI class for personal profile. More...
Public Member Functions | |
__construct () | |
constructor More... | |
executeCommand () | |
execute command 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) | |
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 | |
getProfilePortfolio () | |
has profile set to a portfolio? More... | |
GUI class for personal profile.
ilPersonalProfileGUI: ilPublicUserProfileGUI
Definition at line 12 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::__construct | ( | ) |
constructor
Definition at line 25 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, ilUserDefinedFields\_getInstance(), and settings().
ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 664 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 594 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 605 of file class.ilPersonalProfileGUI.php.
References $ilUser, 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 504 of file class.ilPersonalProfileGUI.php.
References $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 1378 of file class.ilPersonalProfileGUI.php.
References $ilUser.
ilPersonalProfileGUI::executeCommand | ( | ) |
execute command
Definition at line 48 of file class.ilPersonalProfileGUI.php.
References $_GET, $cmd, $ilCtrl, $ilUser, $lng, $tpl, and setTabs().
ilPersonalProfileGUI::exportPersonalData | ( | ) |
Export personal data.
Definition at line 1363 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, and $ilUser.
|
protected |
has profile set to a portfolio?
Definition at line 989 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, and ilObjPortfolio\getDefaultPortfolio().
Referenced by initPublicProfileForm(), and setTabs().
ilPersonalProfileGUI::importPersonalData | ( | ) |
Import personal data.
Definition at line 1458 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilUser, $tpl, initPersonalDataImportForm(), ilUtil\sendSuccess(), and setHeader().
ilPersonalProfileGUI::importPersonalDataSelection | ( | ) |
Import personal data selection.
Definition at line 1391 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, $tpl, initPersonalDataImportForm(), and setHeader().
ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 721 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, $lng, $options, addLocationToForm(), array, input, UDF_TYPE_SELECT, UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Referenced by savePersonalData(), and showPersonalData().
ilPersonalProfileGUI::initPersonalDataImportForm | ( | ) |
Init personal data import form.
Definition at line 1410 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, array, ilFormPropertyGUI\setRequired(), and ilFormPropertyGUI\setTitle().
Referenced by importPersonalData(), and importPersonalDataSelection().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
int | $a_mode | Edit Mode |
Definition at line 1005 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $ilUser, $info, $lng, array, getProfilePortfolio(), ilFormPropertyGUI\setInfo(), and showPublicProfileFields().
Referenced by savePublicProfile(), and showPublicProfile().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 196 of file class.ilPersonalProfileGUI.php.
References $ilUser, and saveProfile().
ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 799 of file class.ilPersonalProfileGUI.php.
References $_SESSION, $ilCtrl, $ilSetting, $ilUser, $lng, $location, $target, $tpl, ilObjUser\_loginExists(), array, ilSession\get(), IL_CAL_DATE, initPersonalDataForm(), ilMapUtil\isActivated(), ilUtil\isLogin(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilSession\set(), showPersonalData(), ilUtil\stripSlashes(), and uploadUserPicture().
ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 210 of file class.ilPersonalProfileGUI.php.
References $_POST, $GLOBALS, $ilSetting, $ilUser, __checkUserDefinedRequiredFields(), array, ilUtil\is_email(), ilUtil\sendFailure(), ilUtil\sendSuccess(), settings(), showProfile(), ilUtil\stripSlashes(), ilLuceneIndexer\updateLuceneIndex(), and workWithUserSetting().
Referenced by removeUserPicture().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1252 of file class.ilPersonalProfileGUI.php.
References $_POST, $GLOBALS, $ilCtrl, $ilUser, $lng, $tpl, array, ilBadgeHandler\getInstance(), initPublicProfileForm(), ilUtil\sendSuccess(), ilLuceneIndexer\updateLuceneIndex(), and ilBadgeAssignment\updatePositions().
ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 680 of file class.ilPersonalProfileGUI.php.
Referenced by importPersonalData(), importPersonalDataSelection(), showExportImport(), showPersonalData(), and showPublicProfile().
ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 560 of file class.ilPersonalProfileGUI.php.
References $ilUser, and getProfilePortfolio().
Referenced by executeCommand().
ilPersonalProfileGUI::showExportImport | ( | ) |
Show export/import.
Definition at line 1331 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilUser, $tpl, ilLinkButton\getInstance(), and setHeader().
ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false | ) |
Personal data form.
Definition at line 694 of file class.ilPersonalProfileGUI.php.
References $ilias, $ilSetting, $ilUser, $lng, initPersonalDataForm(), ilUtil\sendInfo(), and setHeader().
Referenced by savePersonalData(), and showProfile().
ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 493 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 $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 1078 of file class.ilPersonalProfileGUI.php.
References $ilUser, ilObjUser\_getPersonalPicturePath(), array, ilDatePresentation\formatDate(), ilBadgeHandler\getInstance(), ilBadgeAssignment\getInstancesByUserId(), ilBadge\getTitle(), IL_CAL_DATE, ilMapUtil\isActivated(), ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setMultiValues(), and userSettingVisible().
Referenced by initPublicProfileForm().
ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Upload user image.
Definition at line 125 of file class.ilPersonalProfileGUI.php.
References $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 112 of file class.ilPersonalProfileGUI.php.
References $result, and settings().
ilPersonalProfileGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 97 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 79 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.
ilPersonalProfileGUI::$ilias |
Definition at line 16 of file class.ilPersonalProfileGUI.php.
Referenced by __construct(), and showPersonalData().
ilPersonalProfileGUI::$lng |
Definition at line 15 of file class.ilPersonalProfileGUI.php.
Referenced by __construct(), executeCommand(), importPersonalDataSelection(), initPersonalDataForm(), initPersonalDataImportForm(), initPublicProfileForm(), savePersonalData(), savePublicProfile(), showPersonalData(), and showPublicProfile().
ilPersonalProfileGUI::$tpl |
Definition at line 14 of file class.ilPersonalProfileGUI.php.
Referenced by __construct(), executeCommand(), importPersonalData(), importPersonalDataSelection(), savePersonalData(), savePublicProfile(), and showExportImport().
ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 19 of file class.ilPersonalProfileGUI.php.