ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
WithdrawalAcknowledgementLogoutTarget.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\LegalDocuments;
22
27
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}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
__construct(private LogoutTarget $origin, private bool $user_withdrew_legal_docs, private ilCtrlInterface $ctrl, private string $http_path=ILIAS_HTTP_PATH)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...