PHP Class TFD_Environment

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

Protected Properties

Property Type Description
$autoRender
$fileExtension
$templateClassPrefix

Public Methods

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

Protected Methods

Method Description
writeCacheFile ( $file, $content )

Private Methods

Method Description
generateCacheKeyByName ( $name )

Method Details

__construct() public method

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

flushCompilerCache() public method

public flushCompilerCache ( )

getCacheFilename() public method

public getCacheFilename ( $name )

getTemplateClass() public method

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

isAutoRender() public method

public isAutoRender ( )

loadTemplate() public method

public loadTemplate ( $name, $index = null )

writeCacheFile() protected method

protected writeCacheFile ( $file, $content )

Property Details

$autoRender protected_oe property

protected $autoRender

$fileExtension protected_oe property

protected $fileExtension

$templateClassPrefix protected_oe property

protected $templateClassPrefix