19declare(strict_types=1);
37 private readonly \
ilCtrl $ctrl,
60 $this->tabs_gui->addTab(
61 self::TAB_ID_SETTINGS,
62 $this->
lng->txt(
'settings'),
63 $this->ctrl->getLinkTargetByClass(
64 [\ilDashboardGUI::class, PersonalSettingsGUI::class],
72 $this->tabs_gui->addTab(
73 self::TAB_ID_CHANGE_PASSWORD,
74 $this->
lng->txt(
'chg_password'),
75 $this->ctrl->getLinkTargetByClass(
77 \ilDashboardGUI::class,
78 PersonalSettingsGUI::class,
79 \ilLocalUserPasswordSettingsGUI::class
88 $this->tabs_gui->addTab(
89 self::TAB_ID_DELETE_ACCOUNT,
90 $this->
lng->txt(
'user_delete_own_account'),
91 $this->ctrl->getLinkTargetByClass(
92 [\ilDashboardGUI::class, PersonalSettingsGUI::class, DeleteAccountGUI::class],
93 'deleteOwnAccountStep1'
100 $next_class = $this->
ctrl->getNextClass();
101 if ($next_class === strtolower(DeleteAccountGUI::class)) {
102 $this->tabs_gui->activateTab(self::TAB_ID_DELETE_ACCOUNT);
106 if ($next_class === strtolower(\ilLocalUserPasswordSettingsGUI::class)) {
107 $this->tabs_gui->activateTab(self::TAB_ID_CHANGE_PASSWORD);
111 $this->tabs_gui->activateTab(self::TAB_ID_SETTINGS);
121 return $this->
settings->get(
'user_delete_own_account') ===
'1'
static getInstance()
Singleton method to reduce footprint (included files, created instances)
changePasswordAvailable()
const TAB_ID_DELETE_ACCOUNT
const TAB_ID_CHANGE_PASSWORD
__construct(private readonly \ilTabsGUI $tabs_gui, private readonly Language $lng, private readonly \ilCtrl $ctrl, private readonly \ilSetting $settings, private readonly \ilObjUser $current_user)
@ilCtrl_Calls ILIAS\User\Settings\PersonalSettingsGUI: ILIAS\User\Account\DeleteAccountGUI @ilCtrl_Ca...
Class ilCtrl provides processing control methods.
const string CMD_SHOW_PASSWORD
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SYSTEM_USER_ID
This file contains constants for PHPStan analyis, see: https://phpstan.org/config-reference#constants...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...