‪TYPO3CMS  ‪main
VisibilityAspect.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 
21 
31 {
35  protected ‪$includeHiddenPages;
36 
40  protected ‪$includeHiddenContent;
41 
46 
50  protected ‪$includeDeletedRecords;
51 
58  public function ‪__construct(bool ‪$includeHiddenPages = false, bool ‪$includeHiddenContent = false, bool ‪$includeDeletedRecords = false, bool ‪$includeScheduledRecords = false)
59  {
64  }
65 
72  public function get(string $name)
73  {
74  switch ($name) {
75  case 'includeHiddenPages':
77  case 'includeHiddenContent':
79  case 'includeDeletedRecords':
81  case 'includeScheduledRecords':
83  }
84  throw new ‪AspectPropertyNotFoundException('Property "' . $name . '" not found in Aspect "' . __CLASS__ . '".', 1527780439);
85  }
86 
87  public function ‪includeHidden(): bool
88  {
90  }
91 
92  public function ‪includeHiddenPages(): bool
93  {
95  }
96 
97  public function ‪includeHiddenContent(): bool
98  {
100  }
101 
102  public function ‪includeScheduledRecords(): bool
103  {
105  }
106 
107  public function ‪includeDeletedRecords(): bool
108  {
110  }
111 }
‪TYPO3\CMS\Core\Context\VisibilityAspect
Definition: VisibilityAspect.php:31
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeScheduledRecords
‪includeScheduledRecords()
Definition: VisibilityAspect.php:98
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenPages
‪includeHiddenPages()
Definition: VisibilityAspect.php:88
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeScheduledRecords
‪bool $includeScheduledRecords
Definition: VisibilityAspect.php:42
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeDeletedRecords
‪includeDeletedRecords()
Definition: VisibilityAspect.php:103
‪TYPO3\CMS\Core\Context
Definition: AspectInterface.php:18
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeDeletedRecords
‪bool $includeDeletedRecords
Definition: VisibilityAspect.php:46
‪TYPO3\CMS\Core\Context\AspectInterface
Definition: AspectInterface.php:27
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHidden
‪includeHidden()
Definition: VisibilityAspect.php:83
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeHiddenPages
‪bool $includeHiddenPages
Definition: VisibilityAspect.php:34
‪TYPO3\CMS\Core\Context\VisibilityAspect\__construct
‪__construct(bool $includeHiddenPages=false, bool $includeHiddenContent=false, bool $includeDeletedRecords=false, bool $includeScheduledRecords=false)
Definition: VisibilityAspect.php:54
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeHiddenContent
‪bool $includeHiddenContent
Definition: VisibilityAspect.php:38
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenContent
‪includeHiddenContent()
Definition: VisibilityAspect.php:93
‪TYPO3\CMS\Core\Context\Exception\AspectPropertyNotFoundException
Definition: AspectPropertyNotFoundException.php:25