PHP Class FluidTYPO3\Vhs\Utility\FrontendSimulationUtility

Utility to simulate frontend enviroment in backend enviroment.
Mostra file Open project: fluidtypo3/vhs Class Usage Examples

Public Methods

Method Description
resetFrontendEnvironment ( mixed $tsfeBackup ) : void Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
simulateFrontendEnvironment ( ) : mixed Sets the global variables $GLOBALS['TSFE']->csConvObj and $GLOBALS['TSFE']->renderCharset in Backend mode This somewhat hacky work around is currently needed because the conv_case() and convCaseFirst() functions of tslib_cObj rely on those variables to be set

Method Details

resetFrontendEnvironment() public static method

Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
See also: simulateFrontendEnvironment()
public static resetFrontendEnvironment ( mixed $tsfeBackup ) : void
$tsfeBackup mixed
return void

simulateFrontendEnvironment() public static method

Sets the global variables $GLOBALS['TSFE']->csConvObj and $GLOBALS['TSFE']->renderCharset in Backend mode This somewhat hacky work around is currently needed because the conv_case() and convCaseFirst() functions of tslib_cObj rely on those variables to be set
public static simulateFrontendEnvironment ( ) : mixed
return mixed