TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility:
Tx_Extbase_Utility_FrontendSimulator

Static Public Member Functions

static simulateFrontendEnvironment (\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj=NULL)
 
static resetFrontendEnvironment ()
 

Static Protected Attributes

static $tsfeBackup
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Utilities to simulate a frontend in backend context.

ONLY USED INTERNALLY, MIGHT CHANGE WITHOUT NOTICE!

Definition at line 21 of file FrontendSimulatorUtility.php.

Member Function Documentation

◆ resetFrontendEnvironment()

static TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::resetFrontendEnvironment ( )
static

Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()

Returns
void
See also
simulateFrontendEnvironment()

Definition at line 48 of file FrontendSimulatorUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\getConfiguration().

◆ simulateFrontendEnvironment()

static TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::simulateFrontendEnvironment ( \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer  $cObj = NULL)
static

Sets the $TSFE->cObjectDepthCounter in Backend mode This somewhat hacky work around is currently needed because the cObjGetSingle() function of relies on this setting

Parameters
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer | NULL$cObj
Returns
void

Definition at line 35 of file FrontendSimulatorUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\getConfiguration().

Member Data Documentation

◆ $tsfeBackup

TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::$tsfeBackup
staticprotected

Definition at line 26 of file FrontendSimulatorUtility.php.