PHP Класс TFD_Environment

Part of the Drupal twig extension distribution http://renebakx.nl/twig-for-drupal
Наследование: extends Twig_Environment
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$autoRender
$fileExtension
$templateClassPrefix

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

Метод Описание
__construct ( Twig_LoaderInterface $loader = null, $options = [] )
flushCompilerCache ( )
getCacheFilename ( $name )
getTemplateClass ( $name, $index = null ) : returns the name of the class to be created which is also the name of the cached instance
isAutoRender ( )
loadTemplate ( $name, $index = null )

Защищенные методы

Метод Описание
writeCacheFile ( $file, $content )

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

Метод Описание
generateCacheKeyByName ( $name )

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

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

public __construct ( Twig_LoaderInterface $loader = null, $options = [] )
$loader Twig_LoaderInterface

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

public flushCompilerCache ( )

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

public getCacheFilename ( $name )

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

returns the name of the class to be created which is also the name of the cached instance
public getTemplateClass ( $name, $index = null ) :
$name
Результат

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

public isAutoRender ( )

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

public loadTemplate ( $name, $index = null )

writeCacheFile() защищенный Метод

protected writeCacheFile ( $file, $content )

Описание свойств

$autoRender защищенное свойство

protected $autoRender

$fileExtension защищенное свойство

protected $fileExtension

$templateClassPrefix защищенное свойство

protected $templateClassPrefix