[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/twig/twig/lib/Twig/Loader/ -> Array.php (summary)

(no description)

File Size: 95 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Twig_Loader_Array:: (6 methods):
  __construct()
  setTemplate()
  getSource()
  exists()
  getCacheKey()
  isFresh()


Class: Twig_Loader_Array  - X-Ref

Loads a template from an array.

When using this loader with a cache mechanism, you should know that a new cache
key is generated each time a template content "changes" (the cache key being the
source code of the template). If you don't want to see your cache grows out of
control, you need to take care of clearing the old cache file by yourself.

This loader should only be used for unit testing.

__construct(array $templates)   X-Ref
Constructor.

param: array $templates An array of templates (keys are the names, and values are the source code)

setTemplate($name, $template)   X-Ref
Adds or overrides a template.

param: string $name     The template name
param: string $template The template source

getSource($name)   X-Ref
{@inheritdoc}


exists($name)   X-Ref
{@inheritdoc}


getCacheKey($name)   X-Ref
{@inheritdoc}


isFresh($name, $time)   X-Ref
{@inheritdoc}




Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1