ILIAS
Release_5_0_x_branch Revision 61816
|
GUI class for personal profile. More...
Public Member Functions | |
__construct () | |
constructor | |
& | executeCommand () |
execute command | |
setHeader () | |
Set header. | |
showPassword ($a_no_init=false, $hide_form=false) | |
initPasswordForm () | |
Init password form. | |
allowPasswordChange () | |
Check, whether password change is allowed for user. | |
savePassword () | |
Save password form. | |
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. | |
showGeneralSettings ($a_no_init=false) | |
General settings form. | |
initGeneralSettingsForm () | |
Init general settings form. | |
saveGeneralSettings () | |
Save general settings. |
Data Fields | |
$tpl | |
$lng | |
$ilias | |
$ctrl |
Protected Member Functions | |
deleteOwnAccount1 () | |
Delete own account dialog - 1st confirmation. | |
deleteOwnAccount2 () | |
Delete own account dialog - login redirect. | |
abortDeleteOwnAccount () | |
deleteOwnAccountLogout () | |
deleteOwnAccount3 () | |
Delete own account dialog - final confirmation. | |
deleteOwnAccount4 () | |
Delete own account dialog - action incl. |
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.
Definition at line 11 of file class.ilPersonalSettingsGUI.php.
ilPersonalSettingsGUI::__construct | ( | ) |
constructor
Definition at line 21 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and ilUserDefinedFields\_getInstance().
|
protected |
Definition at line 1235 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, $ilUser, and ilUtil\sendInfo().
ilPersonalSettingsGUI::allowPasswordChange | ( | ) |
Check, whether password change is allowed for user.
Definition at line 591 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, AUTH_CAS, AUTH_LOCAL, AUTH_OPENID, AUTH_SHIBBOLETH, AUTH_SOAP, ilAuthUtils\isPasswordModificationEnabled(), and userSettingVisible().
Referenced by initPasswordForm(), and savePassword().
|
protected |
Delete own account dialog - 1st confirmation.
Definition at line 1184 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, ilUtil\sendInfo(), and setHeader().
|
protected |
Delete own account dialog - login redirect.
Definition at line 1211 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, and setHeader().
|
protected |
Delete own account dialog - final confirmation.
Definition at line 1264 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, and setHeader().
|
protected |
Delete own account dialog - action incl.
notification email
Definition at line 1292 of file class.ilPersonalSettingsGUI.php.
References $ilLog, $ilSetting, $ilUser, ilDatePresentation\formatDate(), IL_CAL_UNIX, ilUtil\redirect(), and ilDatePresentation\setUseRelativeDates().
|
protected |
Definition at line 1245 of file class.ilPersonalSettingsGUI.php.
References $ilUser, ilUtil\redirect(), ilSession\SESSION_CLOSE_USER, and ilSession\setClosingContext().
& ilPersonalSettingsGUI::executeCommand | ( | ) |
execute command
Definition at line 45 of file class.ilPersonalSettingsGUI.php.
ilPersonalSettingsGUI::initGeneralSettingsForm | ( | ) |
Init general settings form.
Definition at line 802 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, $lng, $options, $si, ilCalendarUserSettings\_getInstanceByUserId(), ilCalendarUtil\_getShortTimeZoneList(), ilObjStyleSettings\_lookupActivatedStyle(), ilLanguage\_lookupEntry(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilFormat\_secondsToString(), ilCharSelectorConfig\CONTEXT_USER, ilCalendarSettings\DATE_FORMAT_DMY, ilCalendarSettings\DATE_FORMAT_MDY, ilCalendarSettings\DATE_FORMAT_YMD, ilUserUtil\getPersonalStartingObject(), ilUserUtil\getPersonalStartingPoint(), ilUserUtil\getPossibleStartingPoints(), ilSession\getSessionExpireValue(), ilUserUtil\hasPersonalStartingPoint(), ilUserUtil\hasPersonalStartPointPref(), ilSessionReminder\MIN_LEAD_TIME, ilCheckboxInputGUI\setChecked(), ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilRadioOption\setValue(), ilUserUtil\START_REPOSITORY_OBJ, ilSessionReminder\SUGGESTED_LEAD_TIME, ilCalendarSettings\TIME_FORMAT_12, ilCalendarSettings\TIME_FORMAT_24, and userSettingVisible().
Referenced by saveGeneralSettings(), and showGeneralSettings().
|
private |
Initialises the mail options form.
Definition at line 129 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $options, $si, ilObjUser\_lookupEmail(), IL_MAIL_BOTH, IL_MAIL_EMAIL, IL_MAIL_LOCAL, ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), and ilTextAreaInputGUI\setRows().
ilPersonalSettingsGUI::initPasswordForm | ( | ) |
Init password form.
int | $a_mode | Edit Mode |
Definition at line 513 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, $lng, ilDAVServer\_isActive(), allowPasswordChange(), AUTH_CAS, AUTH_LOCAL, AUTH_SHIBBOLETH, ilUtil\getPasswordRequirementsInfo(), ilFormPropertyGUI\setRequired(), and ilPasswordInputGUI\setRetype().
Referenced by savePassword(), and showPassword().
ilPersonalSettingsGUI::saveGeneralSettings | ( | ) |
Save general settings.
Definition at line 1061 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), ilCharSelectorConfig\CONTEXT_USER, ilUserUtil\hasPersonalStartingPoint(), initGeneralSettingsForm(), ilUtil\sendSuccess(), ilUserUtil\setPersonalStartingPoint(), showGeneralSettings(), and workWithUserSetting().
ilPersonalSettingsGUI::savePassword | ( | ) |
Save password form.
Definition at line 622 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $tpl, allowPasswordChange(), AUTH_LOCAL, ilSession\get(), initPasswordForm(), ilUtil\isPassword(), ilUtil\isPasswordValidForUserContext(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilSession\set(), showPassword(), and ilUtil\stripSlashes().
ilPersonalSettingsGUI::setHeader | ( | ) |
Set header.
Definition at line 420 of file class.ilPersonalSettingsGUI.php.
Referenced by deleteOwnAccount1(), deleteOwnAccount2(), deleteOwnAccount3(), showGeneralSettings(), and showPassword().
|
private |
Fetches data from model and loads this data into form.
Definition at line 189 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, and ilMailOptions\getIncomingType().
ilPersonalSettingsGUI::showGeneralSettings | ( | $a_no_init = false | ) |
General settings form.
Definition at line 777 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, initGeneralSettingsForm(), and setHeader().
Referenced by saveGeneralSettings().
ilPersonalSettingsGUI::showPassword | ( | $a_no_init = false , |
|
$hide_form = false |
|||
) |
bool | $a_no_init | |
bool | $hide_form |
Definition at line 477 of file class.ilPersonalSettingsGUI.php.
References $ilUser, initPasswordForm(), ilUtil\sendInfo(), and setHeader().
Referenced by savePassword().
ilPersonalSettingsGUI::userSettingEnabled | ( | $setting | ) |
ilPersonalSettingsGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 749 of file class.ilPersonalSettingsGUI.php.
References $result.
Referenced by allowPasswordChange(), and initGeneralSettingsForm().
ilPersonalSettingsGUI::workWithUserSetting | ( | $setting | ) |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
Definition at line 731 of file class.ilPersonalSettingsGUI.php.
References $result.
Referenced by saveGeneralSettings().
ilPersonalSettingsGUI::$ctrl |
Definition at line 16 of file class.ilPersonalSettingsGUI.php.
ilPersonalSettingsGUI::$ilias |
Definition at line 15 of file class.ilPersonalSettingsGUI.php.
Referenced by __construct().
ilPersonalSettingsGUI::$lng |
Definition at line 14 of file class.ilPersonalSettingsGUI.php.
Referenced by __construct(), executeCommand(), initGeneralSettingsForm(), initMailOptionsForm(), initPasswordForm(), saveGeneralSettings(), and savePassword().
ilPersonalSettingsGUI::$tpl |
Definition at line 13 of file class.ilPersonalSettingsGUI.php.
Referenced by __construct(), executeCommand(), saveGeneralSettings(), and savePassword().