PHP Класс FluidTYPO3\Vhs\Utility\FrontendSimulationUtility

Utility to simulate frontend enviroment in backend enviroment.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

resetFrontendEnvironment() публичный статический Метод

Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
См. также: simulateFrontendEnvironment()
public static resetFrontendEnvironment ( mixed $tsfeBackup ) : void
$tsfeBackup mixed
Результат void

simulateFrontendEnvironment() публичный статический Метод

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
Результат mixed