Symfony2 API
Class

Symfony\Component\Templating\Loader\FilesystemLoader

class FilesystemLoader extends Loader

FilesystemLoader is a loader that read templates from the filesystem.

Methods

__construct(array $templatePathPatterns)

Constructor.

Storage|Boolean load(TemplateReferenceInterface $template)

Loads a template.

Boolean isFresh(TemplateReferenceInterface $template, integer $time)

Returns true if the template is still fresh.

Details

at line 36
public __construct(array $templatePathPatterns)

Constructor.

Parameters

array $templatePathPatterns An array of path patterns to look for templates

at line 50
public Storage|Boolean load(TemplateReferenceInterface $template)

Loads a template.

Parameters

TemplateReferenceInterface $template A template

Return Value

Storage|Boolean false if the template cannot be loaded, a Storage instance otherwise

at line 97
public Boolean isFresh(TemplateReferenceInterface $template, integer $time)

Returns true if the template is still fresh.

Parameters

TemplateReferenceInterface $template A template
integer $time The last modification time of the cached template (timestamp)

Return Value

Boolean true if the template is still fresh, false otherwise