TYPO3  7.6
Static Public Member Functions | Static Protected Attributes | List of all members
FrontendSimulatorUtility Class Reference

Static Public Member Functions

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

Static Protected Attributes

static $tsfeBackup
 

Detailed Description

Utilities to simulate a frontend in backend context.

ONLY USED INTERNALLY, MIGHT CHANGE WITHOUT NOTICE!

Definition at line 22 of file FrontendSimulatorUtility.php.

Member Function Documentation

static resetFrontendEnvironment ( )
static

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

Returns
void
See Also
simulateFrontendEnvironment()

Definition at line 50 of file FrontendSimulatorUtility.php.

References $GLOBALS.

static 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 36 of file FrontendSimulatorUtility.php.

References $GLOBALS.

Member Data Documentation

$tsfeBackup
staticprotected

Definition at line 27 of file FrontendSimulatorUtility.php.