Class ilTermsOfServiceWithdrawalGUIHelper.
More...
◆ __construct()
ilTermsOfServiceWithdrawalGUIHelper::__construct |
( |
ilObjUser |
$subjectUser | ) |
|
◆ getConsentWithdrawalConfirmation()
ilTermsOfServiceWithdrawalGUIHelper::getConsentWithdrawalConfirmation |
( |
object |
$parentObject | ) |
|
Definition at line 160 of file class.ilTermsOfServiceWithdrawalGUIHelper.php.
References $message, ilAuthUtils\AUTH_LDAP, ilAuthUtils\AUTH_LOCAL, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
163 if ($this->setting->get(
'auth_mode')) {
164 $defaultAuth = $this->setting->get(
'auth_mode');
173 if (!$this->
user->getAgreeDate()) {
174 $lng_suffix =
'_no_consent_yet';
176 $question = $this->
lng->txt(
'withdrawal_sure_account' . $lng_suffix);
177 if (!$isLdapUser && $this->setting->get(
'tos_withdrawal_usr_deletion',
'0')) {
178 $question = $this->
lng->txt(
'withdrawal_sure_account_deletion' . $lng_suffix);
181 $confirmation = $this->uiFactory->messageBox()->confirmation($question)->withButtons([
182 $this->uiFactory->button()->standard(
183 $this->
lng->txt(
'confirm'),
184 $this->
ctrl->getFormAction($parentObject,
'withdrawAcceptance')
186 $this->uiFactory->button()->standard(
187 $this->
lng->txt(
'cancel'),
188 $this->
ctrl->getFormAction($parentObject,
'cancelWithdrawal')
193 $message = nl2br(str_ireplace(
'[BR]',
"\n", sprintf(
194 $this->
lng->txt(
'withdrawal_mail_info') . $this->
lng->txt(
'withdrawal_mail_text'),
195 $this->
user->getFullname(),
196 $this->
user->getLogin(),
197 $this->
user->getExternalAccount()
200 $panelContent = $this->uiFactory->legacy(
201 $this->uiRenderer->render([
203 $this->uiFactory->divider()->horizontal(),
208 $content = $this->uiRenderer->render(
209 $this->uiFactory->panel()->standard($this->
lng->txt(
'withdraw_usr_agreement'), $panelContent)
212 $content = $this->uiRenderer->render($confirmation);
◆ getWithdrawalSectionForModal()
ilTermsOfServiceWithdrawalGUIHelper::getWithdrawalSectionForModal |
( |
| ) |
|
|
private |
Definition at line 56 of file class.ilTermsOfServiceWithdrawalGUIHelper.php.
References ILIAS\Repository\lng(), and ilStartUpGUI\logoutUrl().
Referenced by modifyFooter().
58 $template =
new ilTemplate(
'tpl.tos_withdrawal_section.html',
true,
true,
'Services/TermsOfService');
59 $template->setVariable(
'TXT_TOS_WITHDRAWAL_HEADLINE', $this->
lng->txt(
'withdraw_consent_header'));
60 $template->setVariable(
'TXT_TOS_WITHDRAWAL', $this->
lng->txt(
'withdraw_consent_description'));
61 $template->setVariable(
63 $this->uiRenderer->render(
static logoutUrl(array $parameters=[])
Return the logout URL with a valid CSRF token.
◆ getWithdrawalTextForLogoutScreen()
ilTermsOfServiceWithdrawalGUIHelper::getWithdrawalTextForLogoutScreen |
( |
ServerRequestInterface |
$httpRequest | ) |
|
Definition at line 143 of file class.ilTermsOfServiceWithdrawalGUIHelper.php.
References ILIAS\Repository\lng().
145 $withdrawalStatus = ($httpRequest->getQueryParams()[
'withdrawal_relogin_content'] ?? 0);
148 if ($withdrawalStatus !== 0) {
149 $text = $this->uiRenderer->render($this->uiFactory->divider()->horizontal());
150 if ($withdrawalStatus ===
'internal') {
151 $text .= $this->
lng->txt(
'withdraw_consent_description_internal');
153 $text .= $this->
lng->txt(
'withdraw_consent_description_external');
◆ handleWithdrawalLogoutRequest()
ilTermsOfServiceWithdrawalGUIHelper::handleWithdrawalLogoutRequest |
( |
ServerRequestInterface |
$httpRequest, |
|
|
object |
$guiClass |
|
) |
| |
◆ modifyFooter()
ilTermsOfServiceWithdrawalGUIHelper::modifyFooter |
( |
Footer |
$footer | ) |
|
◆ setWithdrawalInfoForLoginScreen()
ilTermsOfServiceWithdrawalGUIHelper::setWithdrawalInfoForLoginScreen |
( |
ServerRequestInterface |
$httpRequest | ) |
|
Definition at line 218 of file class.ilTermsOfServiceWithdrawalGUIHelper.php.
References ILIAS\Repository\int(), and ILIAS\Repository\lng().
220 if (isset($httpRequest->getQueryParams()[
'tos_withdrawal_type'])) {
221 $withdrawalType = (
int) $httpRequest->getQueryParams()[
'tos_withdrawal_type'];
222 if (1 === $withdrawalType) {
223 $this->main_tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'withdrawal_complete_deleted'));
224 } elseif (2 === $withdrawalType) {
225 $this->main_tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'withdrawal_complete_redirect'));
227 $this->main_tpl->setOnScreenMessage(
'info', $this->
lng->txt(
'withdrawal_complete'));
◆ $ctrl
◆ $lng
ilLanguage ilTermsOfServiceWithdrawalGUIHelper::$lng |
|
protected |
◆ $main_tpl
◆ $setting
ilSetting ilTermsOfServiceWithdrawalGUIHelper::$setting |
|
protected |
◆ $tosHelper
◆ $uiFactory
Factory ilTermsOfServiceWithdrawalGUIHelper::$uiFactory |
|
protected |
◆ $uiRenderer
Renderer ilTermsOfServiceWithdrawalGUIHelper::$uiRenderer |
|
protected |
◆ $user
ilObjUser ilTermsOfServiceWithdrawalGUIHelper::$user |
|
protected |
The documentation for this class was generated from the following file: