ILIAS
Release_4_0_x_branch Revision 61816
|
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. |
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
Definition at line 14 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 1765 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
ilPersonalProfileGUI::__initSubTabs | ( | $a_cmd | ) |
Definition at line 1627 of file class.ilPersonalProfileGUI.php.
References $ilSetting, allowPasswordChange(), and ilGoogleMapUtil\isActivated().
Referenced by saveMailOptions(), showChatOptions(), showGeneralSettings(), showjsMath(), showLocation(), showMailOptions(), showPassword(), showPersonalData(), showProfile(), and showPublicProfile().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 1695 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
Referenced by showProfile().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 1706 of file class.ilPersonalProfileGUI.php.
References $name, ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
Referenced by showProfile().
ilPersonalProfileGUI::allowPasswordChange | ( | ) |
Check, whether password change is allowed for user.
Definition at line 2580 of file class.ilPersonalProfileGUI.php.
References $ilSetting, AUTH_CAS, AUTH_LOCAL, AUTH_SHIBBOLETH, AUTH_SOAP, and userSettingVisible().
Referenced by __initSubTabs(), initPasswordForm(), and savePassword().
ilPersonalProfileGUI::changeUserPassword | ( | ) |
change user password
Definition at line 219 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, AUTH_CAS, AUTH_LOCAL, AUTH_SHIBBOLETH, AUTH_SOAP, ilUtil\isPassword(), saveProfile(), and ilUtil\sendSuccess().
& ilPersonalProfileGUI::executeCommand | ( | ) |
execute command
Definition at line 48 of file class.ilPersonalProfileGUI.php.
References $cmd, $ilCtrl, elseif(), and ilUtil\sendInfo().
|
private |
Definition at line 1779 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilSetting, $lng, and ilCheckboxInputGUI\setOptionTitle().
Referenced by showChatOptions().
ilPersonalProfileGUI::ilPersonalProfileGUI | ( | ) |
constructor
Definition at line 27 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and ilUserDefinedFields\_getInstance().
ilPersonalProfileGUI::initGeneralSettingsForm | ( | ) |
Init general settings form.
Definition at line 2716 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, ilObjStyleSettings\_lookupActivatedStyle(), ilLanguage\_lookupEntry(), ilFormat\_secondsToString(), ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), and userSettingVisible().
Referenced by saveGeneralSettings(), and showGeneralSettings().
|
private |
Initialises the mail options form.
private
Definition at line 1367 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 2505 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 1955 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, $up, UDF_TYPE_TEXT, and UDF_TYPE_WYSIWYG.
Referenced by savePersonalData(), and showPersonalData().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
int | $a_mode | Edit Mode |
Definition at line 2263 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $key, $lng, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), ilCheckboxInputGUI\setOptionTitle(), and userSettingVisible().
Referenced by savePublicProfile(), and showPublicProfile().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 206 of file class.ilPersonalProfileGUI.php.
References saveProfile().
ilPersonalProfileGUI::saveChatOptions | ( | ) |
Definition at line 1844 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilSetting, $lng, ilUtil\sendSuccess(), and showChatOptions().
ilPersonalProfileGUI::saveGeneralSettings | ( | ) |
Save general settings.
Definition at line 2861 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $ilSetting, $lng, $tpl, initGeneralSettingsForm(), ilUtil\sendSuccess(), and workWithUserSetting().
ilPersonalProfileGUI::savejsMath | ( | ) |
Definition at line 1509 of file class.ilPersonalProfileGUI.php.
References $_POST, and $ilCtrl.
ilPersonalProfileGUI::saveLocation | ( | ) |
Definition at line 1611 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 1310 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 2605 of file class.ilPersonalProfileGUI.php.
References $_POST, $error, $ilCtrl, $ilSetting, $lng, $tpl, allowPasswordChange(), AUTH_SHIBBOLETH, initPasswordForm(), ilUtil\isPassword(), ilUtil\sendSuccess(), and showPassword().
ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 2020 of file class.ilPersonalProfileGUI.php.
References $_POST, $f, $ilAuth, $ilCtrl, $ilSetting, $lng, $tpl, ilObjUser\_loginExists(), initPersonalDataForm(), ilUtil\isLogin(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showPersonalData(), uploadUserPicture(), and workWithUserSetting().
ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 329 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilAuth, $ilSetting, $key, __checkUserDefinedRequiredFields(), elseif(), ilUtil\is_email(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showProfile(), ilUtil\stripSlashes(), and workWithUserSetting().
Referenced by changeUserPassword(), and removeUserPicture().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 2384 of file class.ilPersonalProfileGUI.php.
References $_POST, $ilCtrl, $key, $lng, $tpl, initPublicProfileForm(), ilUtil\sendSuccess(), and userSettingVisible().
|
private |
Fetches data from model and loads this data into form.
private
Definition at line 1430 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 1878 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $ilSetting, $lng, __initSubTabs(), getChatSettingsForm(), and ilUtil\getImagePath().
Referenced by saveChatOptions().
ilPersonalProfileGUI::showGeneralSettings | ( | $a_no_init = false | ) |
General settings form.
Definition at line 2691 of file class.ilPersonalProfileGUI.php.
References __initSubTabs(), ilUtil\getImagePath(), and initGeneralSettingsForm().
ilPersonalProfileGUI::showjsMath | ( | ) |
Definition at line 1479 of file class.ilPersonalProfileGUI.php.
References $ilCtrl, $lng, $tpl, __initSubTabs(), ilUtil\getImagePath(), and ilCheckboxInputGUI\setChecked().
ilPersonalProfileGUI::showLocation | ( | ) |
Definition at line 1529 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 1457 of file class.ilPersonalProfileGUI.php.
References $lng, __initSubTabs(), ilUtil\getImagePath(), initMailOptionsForm(), and setMailOptionsValuesByDB().
ilPersonalProfileGUI::showPassword | ( | $a_no_init = false | ) |
Password form.
Definition at line 2479 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 1921 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 641 of file class.ilPersonalProfileGUI.php.
References $_POST, $data, $ilias, $ilSetting, $key, $lng, __initSubTabs(), __showOtherInformations(), __showUserDefinedFields(), ilDAVServer\_isActive(), ilObjStyleSettings\_lookupActivatedStyle(), ilLanguage\_lookupEntry(), AUTH_CAS, AUTH_LOCAL, AUTH_SHIBBOLETH, AUTH_SOAP, elseif(), ilUtil\formRadioButton(), ilUtil\generatePasswords(), ilUtil\getImagePath(), ilUtil\getWebspaceDir(), ilUtil\infoPanel(), ilUtil\prepareFormOutput(), ilUtil\sendInfo(), showPersonalData(), userSettingEnabled(), and userSettingVisible().
Referenced by saveProfile().
ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 2231 of file class.ilPersonalProfileGUI.php.
References $ilSetting, $lng, __initSubTabs(), ilUtil\getImagePath(), and initPublicProfileForm().
ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Upload user image.
Definition at line 143 of file class.ilPersonalProfileGUI.php.
References ilUtil\escapeShellArg(), ilUtil\getConvertCmd(), 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 130 of file class.ilPersonalProfileGUI.php.
References $result.
Referenced by showProfile().
ilPersonalProfileGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 116 of file class.ilPersonalProfileGUI.php.
References $result.
Referenced by __showOtherInformations(), allowPasswordChange(), initGeneralSettingsForm(), initPublicProfileForm(), savePublicProfile(), and showProfile().
ilPersonalProfileGUI::workWithUserSetting | ( | $setting | ) |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
Definition at line 98 of file class.ilPersonalProfileGUI.php.
References $result.
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(), showPersonalData(), and showProfile().
ilPersonalProfileGUI::$lng |
Definition at line 17 of file class.ilPersonalProfileGUI.php.
Referenced by getChatSettingsForm(), ilPersonalProfileGUI(), initGeneralSettingsForm(), initMailOptionsForm(), initPasswordForm(), initPersonalDataForm(), initPublicProfileForm(), saveChatOptions(), saveGeneralSettings(), saveLocation(), saveMailOptions(), savePassword(), savePersonalData(), savePublicProfile(), showChatOptions(), showjsMath(), showLocation(), showMailOptions(), showPersonalData(), showProfile(), and showPublicProfile().
ilPersonalProfileGUI::$tpl |
Definition at line 16 of file class.ilPersonalProfileGUI.php.
Referenced by ilPersonalProfileGUI(), saveGeneralSettings(), savePassword(), savePersonalData(), savePublicProfile(), and showjsMath().
ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 21 of file class.ilPersonalProfileGUI.php.