PHP Интерфейс Symfony\Component\Templating\Loader\LoaderInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
isFresh ( Symfony\Component\Templating\TemplateReferenceInterface $template, integer $time ) Returns true if the template is still fresh.
load ( Symfony\Component\Templating\TemplateReferenceInterface $template ) : Storage | boolean Loads a template.

Описание методов

isFresh() публичный Метод

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() публичный Метод

Loads a template.
public load ( Symfony\Component\Templating\TemplateReferenceInterface $template ) : Storage | boolean
$template Symfony\Component\Templating\TemplateReferenceInterface A template
Результат Storage | boolean false if the template cannot be loaded, a Storage instance otherwise