PHP Class Backend\Core\Engine\TwigTemplate

Inheritance: extends Common\Core\Twig\BaseTwigTemplate
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
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

Method Details

__construct() public method

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() public method

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.
return string The actual parsed content after executing this template.