[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

FilesystemLoader:: (15 methods):
  __construct()
  getPaths()
  getNamespaces()
  setPaths()
  addPath()
  prependPath()
  getSourceContext()
  getCacheKey()
  exists()
  isFresh()
  findTemplate()
  normalizeName()
  parseName()
  validateName()
  isAbsolutePath()


Class: FilesystemLoader  - X-Ref

Loads template from the filesystem.

__construct($paths = [], string $rootPath = null)   X-Ref

param: string|array $paths    A path or an array of paths where to look for templates
param: string|null  $rootPath The root path common to all relative paths (null for getcwd())

getPaths($namespace = self::MAIN_NAMESPACE)   X-Ref
Returns the paths to the templates.

param: string $namespace A path namespace
return: array The array of paths where to look for templates

getNamespaces()   X-Ref
Returns the path namespaces.

The main namespace is always defined.

return: array The array of defined namespaces

setPaths($paths, $namespace = self::MAIN_NAMESPACE)   X-Ref
Sets the paths where templates are stored.

param: string|array $paths     A path or an array of paths where to look for templates
param: string       $namespace A path namespace

addPath($path, $namespace = self::MAIN_NAMESPACE)   X-Ref
Adds a path where templates are stored.

param: string $path      A path where to look for templates
param: string $namespace A path namespace

prependPath($path, $namespace = self::MAIN_NAMESPACE)   X-Ref
Prepends a path where templates are stored.

param: string $path      A path where to look for templates
param: string $namespace A path namespace

getSourceContext($name)   X-Ref
No description

getCacheKey($name)   X-Ref
No description

exists($name)   X-Ref
No description

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

findTemplate($name, $throw = true)   X-Ref
Checks if the template can be found.

In Twig 3.0, findTemplate must return a string or null (returning false won't work anymore).

param: string $name  The template name
param: bool   $throw Whether to throw an exception when an error occurs
return: string|false|null The template name or false/null

normalizeName($name)   X-Ref
No description

parseName($name, $default = self::MAIN_NAMESPACE)   X-Ref
No description

validateName($name)   X-Ref
No description

isAbsolutePath($file)   X-Ref
No description



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1