[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/twig/twig/src/Loader/ -> ArrayLoader.php (summary)

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.

Author: Fabien Potencier <fabien@symfony.com>
File Size: 86 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  __construct()
  setTemplate()
  getSourceContext()
  exists()
  getCacheKey()
  isFresh()

Functions
Functions that are not part of a class:

__construct(array $templates = [])   X-Ref

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

getSourceContext($name)   X-Ref
No description

exists($name)   X-Ref
No description

getCacheKey($name)   X-Ref
No description

isFresh($name, $time)   X-Ref
No description



Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1