ILIAS
Release_4_1_x_branch Revision 61804
|
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 () | |
saveChatOptions () | |
showChatOptions ($by_post=false) | |
show Chat Settings | |
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. | |
getChatSettingsForm () |
GUI class for personal profile.
ilPersonalProfileGUI: ilPublicUserProfileGUI, ilExtPublicProfilePageGUI
Definition at line 14 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 1136 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 saveMailOptions(), showChatOptions(), showjsMath(), showLocation(), showMailOptions(), and showPersonalData().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 1066 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 1077 of file class.ilPersonalProfileGUI.php.
References ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
ilPersonalProfileGUI::addProfilePage | ( | ) |
Add profile page.
@return |
Definition at line 2379 of file class.ilPersonalProfileGUI.php.
References $tpl.
ilPersonalProfileGUI::allowPasswordChange | ( | ) |
Check, whether password change is allowed for user.
Definition at line 1930 of file class.ilPersonalProfileGUI.php.
References $ilSetting, AUTH_CAS, AUTH_LOCAL, AUTH_OPENID, AUTH_SHIBBOLETH, AUTH_SOAP, and ilAuthUtils\isPasswordModificationEnabled().
Referenced by __initSubTabs().
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 2481 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, ilExtPublicProfilePage\lookupTitle(), and ilUtil\sendInfo().
ilPersonalProfileGUI::deleteProfilePages | ( | ) |
Delete profile pages.
@return |
Definition at line 2518 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().
|
private |
Definition at line 1150 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilSetting, and $lng.
Referenced by showChatOptions().
ilPersonalProfileGUI::getProfilePageValues | ( | ) |
Get current values for profile page from.
Definition at line 2455 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 2467 of file class.ilPersonalProfileGUI.php.
References ilUtil\getImagePath().
Referenced by executeCommand().
ilPersonalProfileGUI::initGeneralSettingsForm | ( | ) |
Init general settings form.
Definition at line 2073 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, and ilCalendarSettings\TIME_FORMAT_24.
|
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 1852 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, ilDAVServer\_isActive(), AUTH_CAS, AUTH_LOCAL, AUTH_SHIBBOLETH, ilUtil\getPasswordRequirementsInfo(), ilFormPropertyGUI\setRequired(), and ilPasswordInputGUI\setRetype().
ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 1325 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, 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 2396 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, and ilTextInputGUI\setMaxLength().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
int | $a_mode | Edit Mode |
Definition at line 1589 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, ilDatePresentation\formatDate(), IL_CAL_DATE, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), and ilCheckboxInputGUI\setOptionTitle().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 228 of file class.ilPersonalProfileGUI.php.
References saveProfile().
ilPersonalProfileGUI::saveChatOptions | ( | ) |
Definition at line 1214 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, $lng, ilUtil\sendSuccess(), and showChatOptions().
ilPersonalProfileGUI::saveExtProfilePagesOrdering | ( | ) |
Save ordering of external profile pages.
@return |
Definition at line 2545 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, ilExtPublicProfilePage\fixOrdering(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilPersonalProfileGUI::saveGeneralSettings | ( | ) |
Save general settings.
Definition at line 2253 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilSetting, $lng, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), and ilUtil\sendSuccess().
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 1961 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilSetting, $lng, $tpl, AUTH_LOCAL, ilUtil\isPassword(), and ilUtil\sendSuccess().
ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 1390 of file class.ilPersonalProfileGUI.php.
References $_SESSION, $ilAuth, $ilCtrl, $ilSetting, $lng, $redirect, $tpl, ilObjUser\_loginExists(), initPersonalDataForm(), ilUtil\isLogin(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), uploadUserPicture(), and workWithUserSetting().
ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 351 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilAuth, $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 2430 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendSuccess().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1731 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendSuccess().
|
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::showChatOptions | ( | $by_post = false | ) |
show Chat Settings
Definition at line 1248 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilSetting, $lng, __initSubTabs(), getChatSettingsForm(), and ilUtil\getImagePath().
Referenced by saveChatOptions().
ilPersonalProfileGUI::showExtendedProfile | ( | ) |
Show extended profile.
@return |
Definition at line 2358 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, $tab, and $tpl.
ilPersonalProfileGUI::showGeneralSettings | ( | $a_no_init = false | ) |
General settings form.
Definition at line 2048 of file class.ilPersonalProfileGUI.php.
References ilUtil\getImagePath().
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 1826 of file class.ilPersonalProfileGUI.php.
References ilUtil\getImagePath().
ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false | ) |
Personal data form.
Definition at line 1291 of file class.ilPersonalProfileGUI.php.
References $ilias, $ilSetting, $lng, __initSubTabs(), ilUtil\getImagePath(), initPersonalDataForm(), and ilUtil\sendInfo().
Referenced by 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 1557 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, and ilUtil\getImagePath().
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 | ) |
ilPersonalProfileGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 138 of file class.ilPersonalProfileGUI.php.
References $result.
Referenced by __showOtherInformations().
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.
References $result.
Referenced by 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 executeCommand(), getChatSettingsForm(), ilPersonalProfileGUI(), initMailOptionsForm(), initPersonalDataForm(), saveChatOptions(), saveLocation(), saveMailOptions(), savePersonalData(), showChatOptions(), showjsMath(), showLocation(), showMailOptions(), and showPersonalData().
ilPersonalProfileGUI::$tpl |
Definition at line 16 of file class.ilPersonalProfileGUI.php.
Referenced by executeCommand(), ilPersonalProfileGUI(), savePersonalData(), and showjsMath().
ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 21 of file class.ilPersonalProfileGUI.php.