PHP Class Symfony\Component\Templating\Loader\FilesystemLoader

Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Component\Templating\Loader\Loader
Exibir arquivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$templatePathPatterns

Public Methods

Method Description
__construct ( array $templatePathPatterns ) Constructor.
isFresh ( Symfony\Component\Templating\TemplateReferenceInterface $template, integer $time ) Returns true if the template is still fresh.
load ( Symfony\Component\Templating\TemplateReferenceInterface $template ) : Symfony\Component\Templating\Storage\Storage | boolean Loads a template.

Protected Methods

Method Description
isAbsolutePath ( string $file ) : true Returns true if the file is an existing absolute path.

Method Details

__construct() public method

Constructor.
public __construct ( array $templatePathPatterns )
$templatePathPatterns array An array of path patterns to look for templates

isAbsolutePath() protected static method

Returns true if the file is an existing absolute path.
protected static isAbsolutePath ( string $file ) : true
$file string A path
return true if the path exists and is absolute, false otherwise

isFresh() public method

Returns true if the template is still fresh.
public isFresh ( Symfony\Component\Templating\TemplateReferenceInterface $template, integer $time )
$template Symfony\Component\Templating\TemplateReferenceInterface A template
$time integer The last modification time of the cached template (timestamp)

load() public method

Loads a template.
public load ( Symfony\Component\Templating\TemplateReferenceInterface $template ) : Symfony\Component\Templating\Storage\Storage | boolean
$template Symfony\Component\Templating\TemplateReferenceInterface A template
return Symfony\Component\Templating\Storage\Storage | boolean false if the template cannot be loaded, a Storage instance otherwise

Property Details

$templatePathPatterns protected_oe property

protected $templatePathPatterns