‪TYPO3CMS  ‪main
Typo3QuerySettings.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 
23 
28 {
31 
35  protected bool ‪$respectStoragePage = true;
36 
40  protected array ‪$storagePageIds = [];
41 
47  protected bool ‪$ignoreEnableFields = false;
48 
53  protected array ‪$enableFieldsToBeIgnored = [];
54 
58  protected bool ‪$includeDeleted = false;
59 
63  protected bool ‪$respectSysLanguage = true;
64 
66 
67  public function ‪__construct(
70  ) {
71  // QuerySettings should always keep its own Context, as they can differ
72  // Currently this is only used for reading, but might be improved in the future
73  $this->context = clone ‪$context;
74  $this->configurationManager = ‪$configurationManager;
75  $this->languageAspect = $this->context->getAspect('language');
76  }
77 
84  {
85  $this->respectStoragePage = ‪$respectStoragePage;
86  return $this;
87  }
88 
94  public function ‪getRespectStoragePage(): bool
95  {
97  }
98 
104  public function ‪setStoragePageIds(array ‪$storagePageIds): self
105  {
106  $this->storagePageIds = ‪$storagePageIds;
107  return $this;
108  }
109 
115  public function ‪getStoragePageIds(): array
116  {
118  }
119 
124  {
125  $this->respectSysLanguage = ‪$respectSysLanguage;
126  return $this;
127  }
128 
132  public function ‪getRespectSysLanguage(): bool
133  {
135  }
136 
138  {
140  }
141 
143  {
144  $this->languageAspect = ‪$languageAspect;
145  return $this;
146  }
147 
156  {
157  $this->ignoreEnableFields = ‪$ignoreEnableFields;
158  return $this;
159  }
160 
169  public function ‪getIgnoreEnableFields(): bool
170  {
172  }
173 
182  {
183  $this->enableFieldsToBeIgnored = ‪$enableFieldsToBeIgnored;
184  return $this;
185  }
186 
193  public function ‪getEnableFieldsToBeIgnored(): array
194  {
196  }
197 
201  public function ‪setIncludeDeleted(bool ‪$includeDeleted): self
202  {
203  $this->includeDeleted = ‪$includeDeleted;
204  return $this;
205  }
206 
210  public function ‪getIncludeDeleted(): bool
211  {
213  }
214 }
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getIncludeDeleted
‪getIncludeDeleted()
Definition: Typo3QuerySettings.php:210
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setIgnoreEnableFields
‪setIgnoreEnableFields(bool $ignoreEnableFields)
Definition: Typo3QuerySettings.php:155
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$configurationManager
‪ConfigurationManagerInterface $configurationManager
Definition: Typo3QuerySettings.php:29
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getRespectStoragePage
‪bool getRespectStoragePage()
Definition: Typo3QuerySettings.php:94
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$respectStoragePage
‪bool $respectStoragePage
Definition: Typo3QuerySettings.php:35
‪TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
Definition: ConfigurationManagerInterface.php:28
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$languageAspect
‪LanguageAspect $languageAspect
Definition: Typo3QuerySettings.php:65
‪TYPO3\CMS\Core\Context\Context
Definition: Context.php:54
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getStoragePageIds
‪array getStoragePageIds()
Definition: Typo3QuerySettings.php:115
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$ignoreEnableFields
‪bool $ignoreEnableFields
Definition: Typo3QuerySettings.php:47
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setRespectSysLanguage
‪setRespectSysLanguage(bool $respectSysLanguage)
Definition: Typo3QuerySettings.php:123
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$respectSysLanguage
‪bool $respectSysLanguage
Definition: Typo3QuerySettings.php:63
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$includeDeleted
‪bool $includeDeleted
Definition: Typo3QuerySettings.php:58
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$enableFieldsToBeIgnored
‪array $enableFieldsToBeIgnored
Definition: Typo3QuerySettings.php:53
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setLanguageAspect
‪setLanguageAspect(LanguageAspect $languageAspect)
Definition: Typo3QuerySettings.php:142
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getEnableFieldsToBeIgnored
‪getEnableFieldsToBeIgnored()
Definition: Typo3QuerySettings.php:193
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$context
‪Context $context
Definition: Typo3QuerySettings.php:30
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setEnableFieldsToBeIgnored
‪setEnableFieldsToBeIgnored(array $enableFieldsToBeIgnored)
Definition: Typo3QuerySettings.php:181
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getLanguageAspect
‪getLanguageAspect()
Definition: Typo3QuerySettings.php:137
‪TYPO3\CMS\Core\Context\LanguageAspect
Definition: LanguageAspect.php:57
‪TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface
Definition: QuerySettingsInterface.php:26
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\$storagePageIds
‪array $storagePageIds
Definition: Typo3QuerySettings.php:40
‪TYPO3\CMS\Extbase\Persistence\Generic
Definition: Backend.php:18
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getIgnoreEnableFields
‪getIgnoreEnableFields()
Definition: Typo3QuerySettings.php:169
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setStoragePageIds
‪setStoragePageIds(array $storagePageIds)
Definition: Typo3QuerySettings.php:104
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\getRespectSysLanguage
‪bool getRespectSysLanguage()
Definition: Typo3QuerySettings.php:132
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\__construct
‪__construct(Context $context, ConfigurationManagerInterface $configurationManager)
Definition: Typo3QuerySettings.php:67
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setIncludeDeleted
‪setIncludeDeleted(bool $includeDeleted)
Definition: Typo3QuerySettings.php:201
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings\setRespectStoragePage
‪setRespectStoragePage(bool $respectStoragePage)
Definition: Typo3QuerySettings.php:83
‪TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings
Definition: Typo3QuerySettings.php:28