TYPO3 CMS  TYPO3_6-2
Typo3QuerySettings.php
Go to the documentation of this file.
1 <?php
3 
17 
25 
31  protected $respectStoragePage = TRUE;
32 
38  protected $storagePageIds = array();
39 
47  protected $ignoreEnableFields = FALSE;
48 
55  protected $enableFieldsToBeIgnored = array();
56 
62  protected $includeDeleted = FALSE;
63 
69  protected $respectSysLanguage = TRUE;
70 
76  protected $languageOverlayMode = TRUE;
77 
83  protected $languageMode = NULL;
84 
90  protected $languageUid = 0;
91 
98  protected $returnRawQueryResult = FALSE;
99 
105  protected $usePreparedStatement = FALSE;
106 
112  protected $useQueryCache = TRUE;
113 
118  public function initializeObject() {
120  $objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
122  $configurationManager = $objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface');
123  if (TYPO3_MODE === 'BE' && $configurationManager->isFeatureEnabled('ignoreAllEnableFieldsInBe')) {
124  $this->setIgnoreEnableFields(TRUE);
125  }
126 
127  // TYPO3 CMS language defaults
128  $this->setLanguageUid(0);
129  $this->setLanguageMode(NULL);
130  $this->setLanguageOverlayMode(FALSE);
131 
132  // Set correct language uid for frontend handling
133  if (isset($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])) {
134  $this->setLanguageUid((int)$GLOBALS['TSFE']->sys_language_content);
135  $this->setLanguageOverlayMode($GLOBALS['TSFE']->sys_language_contentOL ?: FALSE);
136  $this->setLanguageMode($GLOBALS['TSFE']->sys_language_mode ?: NULL);
137  } elseif ((int)GeneralUtility::_GP('L')) {
138  // Set language from 'L' parameter
139  $this->setLanguageUid((int)GeneralUtility::_GP('L'));
140  }
141  }
142 
151  $this->respectStoragePage = $respectStoragePage;
152  return $this;
153  }
154 
160  public function getRespectStoragePage() {
162  }
163 
171  public function setStoragePageIds(array $storagePageIds) {
172  $this->storagePageIds = $storagePageIds;
173  return $this;
174  }
175 
181  public function getStoragePageIds() {
182  return $this->storagePageIds;
183  }
184 
191  $this->respectSysLanguage = $respectSysLanguage;
192  return $this;
193  }
194 
198  public function getRespectSysLanguage() {
200  }
201 
207  public function setLanguageOverlayMode($languageOverlayMode = FALSE) {
208  $this->languageOverlayMode = $languageOverlayMode;
209  return $this;
210  }
211 
215  public function getLanguageOverlayMode() {
217  }
218 
224  public function setLanguageMode($languageMode = '') {
225  $this->languageMode = $languageMode;
226  return $this;
227  }
228 
232  public function getLanguageMode() {
233  return $this->languageMode;
234  }
235 
241  public function setLanguageUid($languageUid) {
242  $this->languageUid = $languageUid;
243  return $this;
244  }
245 
249  public function getLanguageUid() {
250  return $this->languageUid;
251  }
252 
260  public function setSysLanguageUid($sysLanguageUid) {
262  return $this->setLanguageUid($sysLanguageUid);
263  }
264 
271  public function getSysLanguageUid() {
273  return $this->getLanguageUid();
274  }
275 
287  $this->ignoreEnableFields = $ignoreEnableFields;
288  return $this;
289  }
290 
300  public function getIgnoreEnableFields() {
302  }
303 
315  $this->enableFieldsToBeIgnored = $enableFieldsToBeIgnored;
316  return $this;
317  }
318 
326  public function getEnableFieldsToBeIgnored() {
328  }
329 
338  $this->includeDeleted = $includeDeleted;
339  return $this;
340  }
341 
347  public function getIncludeDeleted() {
348  return $this->includeDeleted;
349  }
350 
360  $this->returnRawQueryResult = $returnRawQueryResult;
361  return $this;
362  }
363 
370  public function getReturnRawQueryResult() {
371  // We do not log this call intentionally, otherwise the deprecation log would be filled up
373  }
374 
381  return $this;
382  }
383 
387  public function getUsePreparedStatement() {
388  return (bool)$this->usePreparedStatement;
389  }
390 
395  public function useQueryCache($useQueryCache) {
396  $this->useQueryCache = (bool)$useQueryCache;
397  return $this;
398  }
399 
403  public function getUseQueryCache() {
404  return $this->useQueryCache;
405  }
406 }
const TYPO3_MODE
Definition: init.php:40
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]