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... | |
setHeader () | |
Set header. More... | |
showPassword ($a_no_init=false, $hide_form=false) | |
initPasswordForm () | |
Init password form. More... | |
savePassword () | |
Save password form. 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... | |
showGeneralSettings ($a_no_init=false) | |
General settings form. More... | |
initGeneralSettingsForm () | |
Init general settings form. More... | |
saveGeneralSettings () | |
Save general settings. More... | |
Data Fields | |
$tpl | |
$lng | |
$ilias | |
$ctrl | |
Protected Member Functions | |
allowPasswordChange () | |
Check, whether password change is allowed for user. More... | |
deleteOwnAccount1 () | |
Delete own account dialog - 1st confirmation. More... | |
deleteOwnAccount2 () | |
Delete own account dialog - login redirect. More... | |
abortDeleteOwnAccount () | |
deleteOwnAccountLogout () | |
deleteOwnAccount3 () | |
Delete own account dialog - final confirmation. More... | |
deleteOwnAccount4 () | |
Delete own account dialog - action incl. More... | |
Private Member Functions | |
initMailOptionsForm () | |
Initialises the mail options form. More... | |
setMailOptionsValuesByDB () | |
Fetches data from model and loads this data into form. More... | |
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, ilUserDefinedFields\_getInstance(), and settings().
|
protected |
Definition at line 1067 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, $ilUser, and ilUtil\sendInfo().
|
protected |
Check, whether password change is allowed for user.
Definition at line 423 of file class.ilPersonalSettingsGUI.php.
References $ilUser, ilSession\get(), and ilAuthUtils\isPasswordModificationEnabled().
Referenced by initPasswordForm(), savePassword(), and setMailOptionsValuesByDB().
|
protected |
Delete own account dialog - 1st confirmation.
Definition at line 1016 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, ilUtil\sendInfo(), and setHeader().
|
protected |
Delete own account dialog - login redirect.
Definition at line 1043 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, and setHeader().
|
protected |
Delete own account dialog - final confirmation.
Definition at line 1095 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, and setHeader().
|
protected |
Delete own account dialog - action incl.
notification email
Definition at line 1123 of file class.ilPersonalSettingsGUI.php.
References $GLOBALS, $ilLog, $ilSetting, $ilUser, array, ilDatePresentation\formatDate(), IL_CAL_UNIX, ilUtil\redirect(), ilDatePresentation\setUseRelativeDates(), and time.
|
protected |
Definition at line 1077 of file class.ilPersonalSettingsGUI.php.
References $GLOBALS, $ilUser, ilUtil\redirect(), ilSession\SESSION_CLOSE_USER, and ilSession\setClosingContext().
ilPersonalSettingsGUI::executeCommand | ( | ) |
execute command
Definition at line 45 of file class.ilPersonalSettingsGUI.php.
References $_POST, $cmd, $ilCtrl, $ilSetting, $ilUser, $lng, $tpl, ilMailGlobalServices\getMailObjectRefId(), initMailOptionsForm(), ilUtil\sendSuccess(), setHeader(), and ilUtil\stripSlashes().
ilPersonalSettingsGUI::initGeneralSettingsForm | ( | ) |
Init general settings form.
Definition at line 610 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, $languages, $lng, $options, $si, $style, ilCalendarUserSettings\_getInstanceByUserId(), ilCalendarUtil\_getShortTimeZoneList(), ilSystemStyleSettings\_lookupActivatedStyle(), ilLanguage\_lookupEntry(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), array, ilCharSelectorConfig\CONTEXT_USER, date, ilCalendarSettings\DATE_FORMAT_DMY, ilCalendarSettings\DATE_FORMAT_MDY, ilCalendarSettings\DATE_FORMAT_YMD, ilBuddySystem\getInstance(), ilUserUtil\getPersonalStartingObject(), ilUserUtil\getPersonalStartingPoint(), ilUserUtil\getPossibleStartingPoints(), ilSession\getSessionExpireValue(), ilUserUtil\hasPersonalStartingPoint(), ilUserUtil\hasPersonalStartPointPref(), ilSessionReminder\MIN_LEAD_TIME, ilDatePresentation\secondsToString(), 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 137 of file class.ilPersonalSettingsGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $options, $si, ilObjUser\_lookupEmail(), array, IL_MAIL_BOTH, IL_MAIL_EMAIL, IL_MAIL_LOCAL, ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), and ilTextAreaInputGUI\setRows().
Referenced by executeCommand(), and setMailOptionsValuesByDB().
ilPersonalSettingsGUI::initPasswordForm | ( | ) |
Init password form.
int | $a_mode | Edit Mode |
Definition at line 356 of file class.ilPersonalSettingsGUI.php.
References $ilSetting, $ilUser, $lng, ilDAVActivationChecker\_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 879 of file class.ilPersonalSettingsGUI.php.
References $_POST, $ilCtrl, $ilSetting, $ilUser, $lng, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), ilCharSelectorConfig\CONTEXT_USER, ilBuddySystem\getInstance(), ilUserUtil\hasPersonalStartingPoint(), initGeneralSettingsForm(), ilUtil\sendSuccess(), ilUserUtil\setPersonalStartingPoint(), showGeneralSettings(), and workWithUserSetting().
ilPersonalSettingsGUI::savePassword | ( | ) |
Save password form.
Definition at line 443 of file class.ilPersonalSettingsGUI.php.
References $_POST, $error, $ilCtrl, $ilSetting, $ilUser, $lng, $target, $tpl, allowPasswordChange(), AUTH_LOCAL, ilSession\get(), ilUserPasswordManager\getInstance(), initPasswordForm(), ilUtil\isPassword(), ilUtil\isPasswordValidForUserContext(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilSession\set(), showPassword(), and ilUtil\stripSlashes().
ilPersonalSettingsGUI::setHeader | ( | ) |
Set header.
Definition at line 306 of file class.ilPersonalSettingsGUI.php.
Referenced by deleteOwnAccount1(), deleteOwnAccount2(), deleteOwnAccount3(), executeCommand(), setMailOptionsValuesByDB(), showGeneralSettings(), and showPassword().
|
private |
Fetches data from model and loads this data into form.
Definition at line 197 of file class.ilPersonalSettingsGUI.php.
References $data, $ilSetting, $ilUser, $lng, allowPasswordChange(), array, ilMailOptions\getIncomingType(), ilMailGlobalServices\getMailObjectRefId(), initMailOptionsForm(), and setHeader().
ilPersonalSettingsGUI::showGeneralSettings | ( | $a_no_init = false | ) |
General settings form.
Definition at line 585 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 320 of file class.ilPersonalSettingsGUI.php.
References $ilUser, initPasswordForm(), ilUtil\sendInfo(), and setHeader().
Referenced by savePassword().
ilPersonalSettingsGUI::userSettingEnabled | ( | $setting | ) |
Returns TRUE if user setting is enabled, FALSE otherwise.
Definition at line 572 of file class.ilPersonalSettingsGUI.php.
References $result, and settings().
ilPersonalSettingsGUI::userSettingVisible | ( | $setting | ) |
Returns TRUE if user setting is visible, FALSE otherwise.
Definition at line 557 of file class.ilPersonalSettingsGUI.php.
References $result, and settings().
Referenced by initGeneralSettingsForm().
ilPersonalSettingsGUI::workWithUserSetting | ( | $setting | ) |
Returns TRUE if working with the given user setting is allowed, FALSE otherwise.
Definition at line 539 of file class.ilPersonalSettingsGUI.php.
References $result, and settings().
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(), savePassword(), and setMailOptionsValuesByDB().
ilPersonalSettingsGUI::$tpl |
Definition at line 13 of file class.ilPersonalSettingsGUI.php.
Referenced by __construct(), executeCommand(), saveGeneralSettings(), and savePassword().