PHP Class TFD_Environment

Part of the Drupal twig extension distribution http://renebakx.nl/twig-for-drupal
Inheritance: extends Twig_Environment
Afficher le fichier Open project: tfd7/tfd7

Protected Properties

Свойство Type Description
$autoRender
$fileExtension
$templateClassPrefix

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
writeCacheFile ( $file, $content )

Private Methods

Méthode Description
generateCacheKeyByName ( $name )

Method Details

__construct() public méthode

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

flushCompilerCache() public méthode

public flushCompilerCache ( )

getCacheFilename() public méthode

public getCacheFilename ( $name )

getTemplateClass() public méthode

returns the name of the class to be created which is also the name of the cached instance
public getTemplateClass ( $name, $index = null ) :
$name
Résultat

isAutoRender() public méthode

public isAutoRender ( )

loadTemplate() public méthode

public loadTemplate ( $name, $index = null )

writeCacheFile() protected méthode

protected writeCacheFile ( $file, $content )

Property Details

$autoRender protected_oe property

protected $autoRender

$fileExtension protected_oe property

protected $fileExtension

$templateClassPrefix protected_oe property

protected $templateClassPrefix