ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
WithdrawalAcknowledgementLogoutTarget.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments
;
22
23
use
ILIAS\Data\URI
;
24
use
ilCtrlInterface
;
25
use
ILIAS\Authentication\Logout\LogoutDestinations
;
26
use
ILIAS\components\Authentication\Logout\LogoutTarget
;
27
28
readonly
class
WithdrawalAcknowledgementLogoutTarget
implements
LogoutTarget
29
{
30
public
function
__construct
(
31
private
LogoutTarget
$origin,
32
private
bool
$user_withdrew_legal_docs,
33
private
ilCtrlInterface
$ctrl,
34
private
string
$http_path = ILIAS_HTTP_PATH
35
) {
36
}
37
38
public
function
asURI
():
URI
39
{
40
if
($this->user_withdrew_legal_docs) {
41
return
LogoutDestinations::LOGIN_SCREEN->asURI($this->
ctrl
, $this->http_path);
42
}
43
44
return
$this->origin->asURI();
45
}
46
}
ILIAS\LegalDocuments
Definition:
Administration.php:21
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:63
ILIAS\components\Authentication\Logout\LogoutTarget
Definition:
LogoutTarget.php:25
ILIAS\LegalDocuments\WithdrawalAcknowledgementLogoutTarget
Definition:
WithdrawalAcknowledgementLogoutTarget.php:28
ILIAS\LegalDocuments\WithdrawalAcknowledgementLogoutTarget\__construct
__construct(private LogoutTarget $origin, private bool $user_withdrew_legal_docs, private ilCtrlInterface $ctrl, private string $http_path=ILIAS_HTTP_PATH)
Definition:
WithdrawalAcknowledgementLogoutTarget.php:30
ILIAS\Data\URI
LogoutTarget
ILIAS\LegalDocuments\WithdrawalAcknowledgementLogoutTarget\asURI
asURI()
Definition:
WithdrawalAcknowledgementLogoutTarget.php:38
ilCtrlInterface
ILIAS\Authentication\Logout\LogoutDestinations
LogoutDestinations
Definition:
LogoutDestinations.php:27
components
ILIAS
LegalDocuments
classes
WithdrawalAcknowledgementLogoutTarget.php
Generated on Sun Aug 31 2025 23:03:15 for ILIAS by
1.8.13 (using
Doxyfile
)