‪TYPO3CMS  ‪main
BeforePageIsRetrievedEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
30 {
31  private ?‪Page ‪$page = null;
32 
33  public function ‪__construct(
34  private int $pageId,
35  private readonly bool $skipGroupAccessCheck,
36  private readonly ‪Context $context,
37  ) {}
38 
39  public function ‪getPage(): ?‪Page
40  {
41  return ‪$this->page;
42  }
43 
44  public function ‪setPage(‪Page ‪$page): void
45  {
46  $this->page = ‪$page;
47  }
48 
49  public function ‪hasPage(): bool
50  {
51  return $this->page !== null;
52  }
53 
54  public function ‪getPageId(): int
55  {
56  return $this->pageId;
57  }
58 
59  public function ‪setPageId(int $pageId): void
60  {
61  $this->pageId = $pageId;
62  }
63 
64  public function ‪isGroupAccessCheckSkipped(): bool
65  {
66  return $this->skipGroupAccessCheck;
67  }
68 
69  public function ‪getContext(): ‪Context
70  {
71  return $this->context;
72  }
73 }
‪TYPO3\CMS\Core\Domain\Page
Definition: Page.php:24
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\__construct
‪__construct(private int $pageId, private readonly bool $skipGroupAccessCheck, private readonly Context $context,)
Definition: BeforePageIsRetrievedEvent.php:33
‪TYPO3\CMS\Core\Domain\Event
Definition: AfterRecordLanguageOverlayEvent.php:18
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\getPageId
‪getPageId()
Definition: BeforePageIsRetrievedEvent.php:54
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\setPageId
‪setPageId(int $pageId)
Definition: BeforePageIsRetrievedEvent.php:59
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\getContext
‪getContext()
Definition: BeforePageIsRetrievedEvent.php:69
‪TYPO3\CMS\Core\Context\Context
Definition: Context.php:54
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent
Definition: BeforePageIsRetrievedEvent.php:30
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\isGroupAccessCheckSkipped
‪isGroupAccessCheckSkipped()
Definition: BeforePageIsRetrievedEvent.php:64
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\hasPage
‪hasPage()
Definition: BeforePageIsRetrievedEvent.php:49
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\$page
‪Page $page
Definition: BeforePageIsRetrievedEvent.php:31
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\setPage
‪setPage(Page $page)
Definition: BeforePageIsRetrievedEvent.php:44
‪TYPO3\CMS\Core\Domain\Event\BeforePageIsRetrievedEvent\getPage
‪getPage()
Definition: BeforePageIsRetrievedEvent.php:39