PHP 클래스 Twig_Loader_Kohana, kohana-twig

저자: Mathew Davies ([email protected])
상속: implements Twig_LoaderInterface
파일 보기 프로젝트 열기: jonathangeiger/kohana-twig

보호된 프로퍼티들

프로퍼티 타입 설명
$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