PHP Класс Backend\Core\Engine\TwigTemplate

Наследование: extends Common\Core\Twig\BaseTwigTemplate
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( boolean $addToReference = true ) The constructor will store the instance in the reference, preset some settings and map the custom modifiers.
getContent ( string $template ) : string Fetch the parsed content from this template.

Приватные методы

Метод Описание
parseAuthenticatedUser ( ) Parse the settings for the authenticated user
parseAuthentication ( ) Parse the authentication settings for the authenticated user
parseConstants ( ) Parse all user-defined constants
parseDebug ( ) Assigns an option if we are in debug-mode
parseLabels ( ) Assign the labels
parseLocale ( ) Parse the locale (things like months, days, .
parseVars ( ) Parse some vars

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

__construct() публичный Метод

The constructor will store the instance in the reference, preset some settings and map the custom modifiers.
public __construct ( boolean $addToReference = true )
$addToReference boolean Should the instance be added into the reference.

getContent() публичный Метод

Fetch the parsed content from this template.
public getContent ( string $template ) : string
$template string The location of the template file, used to display this template.
Результат string The actual parsed content after executing this template.