‪TYPO3CMS  10.4
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 
45  protected ‪$includeDeletedRecords;
46 
52  public function ‪__construct(bool ‪$includeHiddenPages = false, bool ‪$includeHiddenContent = false, bool ‪$includeDeletedRecords = false)
53  {
57  }
58 
66  public function get(string $name)
67  {
68  switch ($name) {
69  case 'includeHiddenPages':
71  case 'includeHiddenContent':
73  case 'includeDeletedRecords':
75  }
76  throw new ‪AspectPropertyNotFoundException('Property "' . $name . '" not found in Aspect "' . __CLASS__ . '".', 1527780439);
77  }
78 
79  public function ‪includeHidden(): bool
80  {
82  }
83 
84  public function ‪includeHiddenPages(): bool
85  {
87  }
88 
89  public function ‪includeHiddenContent(): bool
90  {
92  }
93 
94  public function ‪includeDeletedRecords(): bool
95  {
97  }
98 }
‪TYPO3\CMS\Core\Context\VisibilityAspect
Definition: VisibilityAspect.php:31
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenPages
‪includeHiddenPages()
Definition: VisibilityAspect.php:81
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeDeletedRecords
‪includeDeletedRecords()
Definition: VisibilityAspect.php:91
‪TYPO3\CMS\Core\Context
Definition: AspectInterface.php:18
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeDeletedRecords
‪bool $includeDeletedRecords
Definition: VisibilityAspect.php:42
‪TYPO3\CMS\Core\Context\AspectInterface
Definition: AspectInterface.php:27
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHidden
‪includeHidden()
Definition: VisibilityAspect.php:76
‪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)
Definition: VisibilityAspect.php:49
‪TYPO3\CMS\Core\Context\VisibilityAspect\$includeHiddenContent
‪bool $includeHiddenContent
Definition: VisibilityAspect.php:38
‪TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenContent
‪includeHiddenContent()
Definition: VisibilityAspect.php:86
‪TYPO3\CMS\Core\Context\Exception\AspectPropertyNotFoundException
Definition: AspectPropertyNotFoundException.php:26