‪TYPO3CMS  9.5
VisibilityAspect.php
Go to the documentation of this file.
1 <?php
2 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 
29 {
33  protected ‪$includeHiddenPages;
34 
38  protected ‪$includeHiddenContent;
39 
43  protected ‪$includeDeletedRecords;
44 
50  public function ‪__construct(bool ‪$includeHiddenPages = false, bool ‪$includeHiddenContent = false, bool ‪$includeDeletedRecords = false)
51  {
55  }
56 
64  public function get(string $name)
65  {
66  switch ($name) {
67  case 'includeHiddenPages':
69  case 'includeHiddenContent':
71  case 'includeDeletedRecords':
73  }
74  throw new ‪AspectPropertyNotFoundException('Property "' . $name . '" not found in Aspect "' . __CLASS__ . '".', 1527780439);
75  }
76 
77  public function ‪includeHidden(): bool
78  {
80  }
81 
82  public function ‪includeHiddenPages(): bool
83  {
85  }
86 
87  public function ‪includeHiddenContent(): bool
88  {
90  }
91 
92  public function ‪includeDeletedRecords(): bool
93  {
95  }
96 }
‪TYPO3\CMS\Core\Context\VisibilityAspect
Definition: VisibilityAspect.php:29
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenPages
‪includeHiddenPages()
Definition: VisibilityAspect.php:79
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeDeletedRecords
‪includeDeletedRecords()
Definition: VisibilityAspect.php:89
‪TYPO3\CMS\Core\Context
Definition: AspectInterface.php:3
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeDeletedRecords
‪bool $includeDeletedRecords
Definition: VisibilityAspect.php:40
‪TYPO3\CMS\Core\Context\AspectInterface
Definition: AspectInterface.php:25
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHidden
‪includeHidden()
Definition: VisibilityAspect.php:74
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeHiddenPages
‪bool $includeHiddenPages
Definition: VisibilityAspect.php:32
‪TYPO3\CMS\Core\Context\VisibilityAspect\__construct
‪__construct(bool $includeHiddenPages=false, bool $includeHiddenContent=false, bool $includeDeletedRecords=false)
Definition: VisibilityAspect.php:47
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeHiddenContent
‪bool $includeHiddenContent
Definition: VisibilityAspect.php:36
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenContent
‪includeHiddenContent()
Definition: VisibilityAspect.php:84
‪TYPO3\CMS\Core\Context\Exception\AspectPropertyNotFoundException
Definition: AspectPropertyNotFoundException.php:24