ILIAS
eassessment Revision 61809
|
GUI class for personal profile. More...
Public Member Functions | |
ilPersonalProfileGUI () | |
constructor | |
& | executeCommand () |
execute command | |
workWithUserSetting ($setting) | |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise. | |
userSettingVisible ($setting) | |
Returns TRUE if user setting is visible, FALSE otherwise. | |
userSettingEnabled ($setting) | |
Returns TRUE if user setting is enabled, FALSE otherwise. | |
uploadUserPicture () | |
Upload user image. | |
removeUserPicture () | |
remove user image | |
changeUserPassword () | |
change user password | |
saveProfile () | |
save user profile data | |
showProfile () | |
show profile form | |
saveMailOptions () | |
Called if the user pushes the submit button of the mail options form. | |
showMailOptions () | |
Called to display the mail options form. | |
showjsMath () | |
savejsMath () | |
showLocation () | |
saveLocation () | |
__initSubTabs ($a_cmd) | |
__showOtherInformations () | |
__showUserDefinedFields () | |
__checkUserDefinedRequiredFields () | |
showPersonalData ($a_no_init=false) | |
Personal data form. | |
initPersonalDataForm () | |
Init personal form. | |
savePersonalData () | |
Save personal data form. | |
showPublicProfile ($a_no_init=false) | |
Public profile form. | |
initPublicProfileForm () | |
Init public profile form. | |
savePublicProfile () | |
Save public profile form. | |
showPassword ($a_no_init=false) | |
Password form. | |
initPasswordForm () | |
Init password form. | |
allowPasswordChange () | |
Check, whether password change is allowed for user. | |
savePassword () | |
Save password form. | |
showGeneralSettings ($a_no_init=false) | |
General settings form. | |
initGeneralSettingsForm () | |
Init general settings form. | |
saveGeneralSettings () | |
Save general settings. | |
showExtendedProfile () | |
Show extended profile. | |
addProfilePage () | |
Add profile page. | |
initProfilePageForm ($a_mode="edit") | |
Init profile page form. | |
saveProfilePage () | |
Save profile page form. | |
getProfilePageValues () | |
Get current values for profile page from. | |
initExtProfile () | |
Init desktop header. | |
confirmProfilePageDeletion () | |
Confirm item deletion. | |
deleteProfilePages () | |
Delete profile pages. | |
saveExtProfilePagesOrdering () | |
Save ordering of external profile pages. |
Data Fields | |
$tpl | |
$lng | |
$ilias | |
$ctrl | |
$user_defined_fields = null |
Private Member Functions | |
initMailOptionsForm () | |
Initialises the mail options form. | |
setMailOptionsValuesByDB () | |
Fetches data from model and loads this data into form. |
GUI class for personal profile.
ilPersonalProfileGUI: ilPublicUserProfileGUI, ilExtPublicProfilePageGUI
Definition at line 14 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 1127 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
ilPersonalProfileGUI::__initSubTabs | ( | $a_cmd | ) |
Definition at line 992 of file class.ilPersonalProfileGUI.php.
References $ilSetting, allowPasswordChange(), and ilGoogleMapUtil\isActivated().
Referenced by initExtProfile(), saveMailOptions(), showGeneralSettings(), showjsMath(), showLocation(), showMailOptions(), showPassword(), showPersonalData(), and showPublicProfile().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 1057 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 1068 of file class.ilPersonalProfileGUI.php.
References $name, ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
ilPersonalProfileGUI::addProfilePage | ( | ) |
Add profile page.
@return |
Definition at line 2301 of file class.ilPersonalProfileGUI.php.
References $tpl, initExtProfile(), and initProfilePageForm().
ilPersonalProfileGUI::allowPasswordChange | ( | ) |
Check, whether password change is allowed for user.
Definition at line 1852 of file class.ilPersonalProfileGUI.php.
References $ilSetting, AUTH_CAS, AUTH_LOCAL, AUTH_OPENID, AUTH_SHIBBOLETH, AUTH_SOAP, ilAuthUtils\isPasswordModificationEnabled(), and userSettingVisible().
Referenced by __initSubTabs(), initPasswordForm(), and savePassword().
ilPersonalProfileGUI::changeUserPassword | ( | ) |
change user password
Definition at line 241 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, AUTH_CAS, AUTH_LOCAL, AUTH_SHIBBOLETH, AUTH_SOAP, ilUtil\isPassword(), saveProfile(), and ilUtil\sendSuccess().
ilPersonalProfileGUI::confirmProfilePageDeletion | ( | ) |
Confirm item deletion.
Definition at line 2403 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, initExtProfile(), ilExtPublicProfilePage\lookupTitle(), and ilUtil\sendInfo().
ilPersonalProfileGUI::deleteProfilePages | ( | ) |
Delete profile pages.
@return |
Definition at line 2440 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilDB, $lng, ilExtPublicProfilePage\fixOrdering(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
& ilPersonalProfileGUI::executeCommand | ( | ) |
execute command
Definition at line 49 of file class.ilPersonalProfileGUI.php.
References $_GET, $cmd, $ilCtrl, $lng, $ret, $tpl, ilObjStyleSheet\getContentStylePath(), initExtProfile(), and ilUtil\sendInfo().
ilPersonalProfileGUI::getProfilePageValues | ( | ) |
Get current values for profile page from.
Definition at line 2377 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::ilPersonalProfileGUI | ( | ) |
constructor
Definition at line 27 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and ilUserDefinedFields\_getInstance().
ilPersonalProfileGUI::initExtProfile | ( | ) |
Init desktop header.
Definition at line 2389 of file class.ilPersonalProfileGUI.php.
References __initSubTabs(), and ilUtil\getImagePath().
Referenced by addProfilePage(), confirmProfilePageDeletion(), executeCommand(), saveProfilePage(), and showExtendedProfile().
ilPersonalProfileGUI::initGeneralSettingsForm | ( | ) |
Init general settings form.
Definition at line 1995 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, ilCalendarUserSettings\_getInstanceByUserId(), ilCalendarUtil\_getShortTimeZoneList(), ilObjStyleSettings\_lookupActivatedStyle(), ilLanguage\_lookupEntry(), ilFormat\_secondsToString(), ilCalendarSettings\DATE_FORMAT_DMY, ilCalendarSettings\DATE_FORMAT_MDY, ilCalendarSettings\DATE_FORMAT_YMD, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilCalendarSettings\TIME_FORMAT_12, ilCalendarSettings\TIME_FORMAT_24, and userSettingVisible().
Referenced by saveGeneralSettings(), and showGeneralSettings().
|
private |
Initialises the mail options form.
private
Definition at line 732 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilSetting, $lng, ilObjUser\_lookupEmail(), IL_MAIL_BOTH, IL_MAIL_EMAIL, IL_MAIL_LOCAL, ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), and ilTextAreaInputGUI\setRows().
Referenced by saveMailOptions(), and showMailOptions().
ilPersonalProfileGUI::initPasswordForm | ( | ) |
Init password form.
int | $a_mode | Edit Mode |
Definition at line 1774 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, ilDAVServer\_isActive(), allowPasswordChange(), AUTH_CAS, AUTH_LOCAL, AUTH_SHIBBOLETH, ilUtil\getPasswordRequirementsInfo(), ilFormPropertyGUI\setRequired(), and ilPasswordInputGUI\setRetype().
Referenced by savePassword(), and showPassword().
ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 1184 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, $up, UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Referenced by savePersonalData(), and showPersonalData().
ilPersonalProfileGUI::initProfilePageForm | ( | $a_mode = "edit" | ) |
Init profile page form.
int | $a_mode | Edit Mode |
Definition at line 2318 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, and ilTextInputGUI\setMaxLength().
Referenced by addProfilePage(), and saveProfilePage().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
int | $a_mode | Edit Mode |
Definition at line 1511 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, ilDatePresentation\formatDate(), IL_CAL_DATE, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), ilCheckboxInputGUI\setOptionTitle(), and userSettingVisible().
Referenced by savePublicProfile(), and showPublicProfile().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 228 of file class.ilPersonalProfileGUI.php.
References saveProfile().
ilPersonalProfileGUI::saveExtProfilePagesOrdering | ( | ) |
Save ordering of external profile pages.
@return |
Definition at line 2467 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, ilExtPublicProfilePage\fixOrdering(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPersonalProfileGUI::saveGeneralSettings | ( | ) |
Save general settings.
Definition at line 2175 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilSetting, $lng, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), initGeneralSettingsForm(), ilUtil\sendSuccess(), and workWithUserSetting().
ilPersonalProfileGUI::savejsMath | ( | ) |
Definition at line 874 of file class.ilPersonalProfileGUI.php.
References $_POST, and $ilCtrl.
ilPersonalProfileGUI::saveLocation | ( | ) |
Definition at line 976 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPersonalProfileGUI::saveMailOptions | ( | ) |
Called if the user pushes the submit button of the mail options form.
Passes the post data to the mail options model instance to store them.
public
Definition at line 675 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, $lng, __initSubTabs(), ilUtil\getImagePath(), initMailOptionsForm(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPersonalProfileGUI::savePassword | ( | ) |
Save password form.
Definition at line 1883 of file class.ilPersonalProfileGUI.php.
References $_POST, $error, $ilCtrl, $ilSetting, $lng, $tpl, allowPasswordChange(), AUTH_LOCAL, initPasswordForm(), ilUtil\isPassword(), ilUtil\sendSuccess(), and showPassword().
ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 1248 of file class.ilPersonalProfileGUI.php.
References $_POST, $_SESSION, $f, $ilCtrl, $ilSetting, $lng, $redirect, $tpl, $up, ilObjUser\_loginExists(), initPersonalDataForm(), ilUtil\isLogin(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showPersonalData(), uploadUserPicture(), and workWithUserSetting().
ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 351 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, __checkUserDefinedRequiredFields(), ilUtil\is_email(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showProfile(), ilUtil\stripSlashes(), and workWithUserSetting().
Referenced by changeUserPassword(), and removeUserPicture().
ilPersonalProfileGUI::saveProfilePage | ( | ) |
Save profile page form.
Definition at line 2352 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, initExtProfile(), initProfilePageForm(), and ilUtil\sendSuccess().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1653 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, initPublicProfileForm(), ilUtil\sendSuccess(), and userSettingVisible().
|
private |
Fetches data from model and loads this data into form.
private
Definition at line 795 of file class.ilPersonalProfileGUI.php.
References $data, $ilSetting, and ilMailOptions\getIncomingType().
Referenced by showMailOptions().
ilPersonalProfileGUI::showExtendedProfile | ( | ) |
Show extended profile.
@return |
Definition at line 2280 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, $tab, $tpl, and initExtProfile().
ilPersonalProfileGUI::showGeneralSettings | ( | $a_no_init = false | ) |
General settings form.
Definition at line 1970 of file class.ilPersonalProfileGUI.php.
References __initSubTabs(), ilUtil\getImagePath(), and initGeneralSettingsForm().
ilPersonalProfileGUI::showjsMath | ( | ) |
Definition at line 844 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, $tpl, __initSubTabs(), ilUtil\getImagePath(), and ilCheckboxInputGUI\setChecked().
ilPersonalProfileGUI::showLocation | ( | ) |
Definition at line 894 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, __initSubTabs(), ilGoogleMapUtil\getDefaultSettings(), ilUtil\getImagePath(), ilGoogleMapUtil\isActivated(), ilLocationInputGUI\setLatitude(), and ilCheckboxInputGUI\setValue().
ilPersonalProfileGUI::showMailOptions | ( | ) |
Called to display the mail options form.
public
Definition at line 822 of file class.ilPersonalProfileGUI.php.
References $lng, __initSubTabs(), ilUtil\getImagePath(), initMailOptionsForm(), and setMailOptionsValuesByDB().
ilPersonalProfileGUI::showPassword | ( | $a_no_init = false | ) |
Password form.
Definition at line 1748 of file class.ilPersonalProfileGUI.php.
References __initSubTabs(), ilUtil\getImagePath(), and initPasswordForm().
Referenced by savePassword().
ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false | ) |
Personal data form.
Definition at line 1150 of file class.ilPersonalProfileGUI.php.
References $ilias, $ilSetting, $lng, __initSubTabs(), ilUtil\getImagePath(), initPersonalDataForm(), and ilUtil\sendInfo().
Referenced by savePersonalData(), and showProfile().
ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 663 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 1479 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, __initSubTabs(), ilUtil\getImagePath(), and initPublicProfileForm().
ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Upload user image.
Definition at line 166 of file class.ilPersonalProfileGUI.php.
References ilUtil\escapeShellArg(), ilUtil\execConvert(), ilUtil\getWebspaceDir(), ilUtil\moveUploadedFile(), ilUtil\sendFailure(), and workWithUserSetting().
Referenced by savePersonalData().
ilPersonalProfileGUI::userSettingEnabled | ( | $setting | ) |
Returns TRUE if user setting is enabled, FALSE otherwise.
Definition at line 153 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 138 of file class.ilPersonalProfileGUI.php.
Referenced by __showOtherInformations(), allowPasswordChange(), initGeneralSettingsForm(), initPublicProfileForm(), and savePublicProfile().
ilPersonalProfileGUI::workWithUserSetting | ( | $setting | ) |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
Definition at line 120 of file class.ilPersonalProfileGUI.php.
Referenced by saveGeneralSettings(), savePersonalData(), saveProfile(), and uploadUserPicture().
ilPersonalProfileGUI::$ctrl |
Definition at line 19 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::$ilias |
Definition at line 18 of file class.ilPersonalProfileGUI.php.
Referenced by ilPersonalProfileGUI(), and showPersonalData().
ilPersonalProfileGUI::$lng |
Definition at line 17 of file class.ilPersonalProfileGUI.php.
Referenced by confirmProfilePageDeletion(), deleteProfilePages(), executeCommand(), ilPersonalProfileGUI(), initGeneralSettingsForm(), initMailOptionsForm(), initPasswordForm(), initPersonalDataForm(), initProfilePageForm(), initPublicProfileForm(), saveExtProfilePagesOrdering(), saveGeneralSettings(), saveLocation(), saveMailOptions(), savePassword(), savePersonalData(), saveProfilePage(), savePublicProfile(), showExtendedProfile(), showjsMath(), showLocation(), showMailOptions(), showPersonalData(), and showPublicProfile().
ilPersonalProfileGUI::$tpl |
Definition at line 16 of file class.ilPersonalProfileGUI.php.
Referenced by addProfilePage(), confirmProfilePageDeletion(), executeCommand(), ilPersonalProfileGUI(), saveGeneralSettings(), savePassword(), savePersonalData(), saveProfilePage(), savePublicProfile(), showExtendedProfile(), and showjsMath().
ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 21 of file class.ilPersonalProfileGUI.php.