PHP Класс Twig_Loader_Kohana, kohana-twig

Автор: Mathew Davies ([email protected])
Наследование: implements Twig_LoaderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cache array Array of filepaths

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

Метод Описание
getCacheKey ( string $name ) : string Gets the cache key to use for the cache for a given template name.
getSource ( string $name ) : string Gets the source code of a template, given its name.
isFresh ( string $name, timestamp $time ) Returns true if the template is still fresh.

Защищенные методы

Метод Описание
findTemplate ( string $name ) : string Find the template using the find_file method.

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

findTemplate() защищенный Метод

Find the template using the find_file method.
protected findTemplate ( string $name ) : string
$name string The name of the template
Результат string The full path to the template.

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

Gets the cache key to use for the cache for a given template name.
public getCacheKey ( string $name ) : string
$name string string The name of the template to load
Результат string The cache key

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

Gets the source code of a template, given its name.
public getSource ( string $name ) : string
$name string The name of the template to load
Результат string The template source code

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

Returns true if the template is still fresh.
public isFresh ( string $name, timestamp $time )
$name string The template name
$time timestamp The last modification time of the cached template

Описание свойств

$cache защищенное свойство

Array of filepaths
protected array $cache
Результат array