ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
WithdrawalAcknowledgementLogoutTarget.php
Go to the documentation of this file.
1
<?php
2
20
declare(strict_types=1);
21
22
namespace
ILIAS\LegalDocuments
;
23
24
use
ILIAS\Data\URI
;
25
use
ilCtrlInterface
;
26
use
ILIAS\Authentication\Logout\LogoutDestinations
;
27
use
ILIAS\components\Authentication\Logout\LogoutTarget
;
28
29
readonly
class
WithdrawalAcknowledgementLogoutTarget
implements
LogoutTarget
30
{
31
public
function
__construct
(
32
private
LogoutTarget
$origin,
33
private
bool
$user_withdrew_legal_docs,
34
private
ilCtrlInterface
$ctrl,
35
private
string
$http_path = ILIAS_HTTP_PATH
36
) {
37
}
38
39
public
function
asURI
():
URI
40
{
41
if
($this->user_withdrew_legal_docs) {
42
return
LogoutDestinations::LOGIN_SCREEN->asURI($this->
ctrl
, $this->http_path);
43
}
44
45
return
$this->origin->asURI();
46
}
47
}
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:29
ILIAS\Data\URI
The scope of this class is split ilias-conform URI's into components.
Definition:
URI.php:34
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:31
ILIAS\Data\URI
LogoutTarget
ILIAS\LegalDocuments\WithdrawalAcknowledgementLogoutTarget\asURI
asURI()
Definition:
WithdrawalAcknowledgementLogoutTarget.php:39
ilCtrlInterface
ILIAS\Authentication\Logout\LogoutDestinations
LogoutDestinations
Definition:
LogoutDestinations.php:28
components
ILIAS
LegalDocuments
classes
WithdrawalAcknowledgementLogoutTarget.php
Generated on Wed Sep 10 2025 15:15:52 for ILIAS by
1.8.13 (using
Doxyfile
)