PHP 클래스 Timber\Loader

파일 보기 프로젝트 열기: timber/timber 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cache_modes

보호된 프로퍼티들

프로퍼티 타입 설명
$cache_mode
$locations

공개 메소드들

메소드 설명
__construct ( boolean | string $caller = false )
choose_template ( array $filenames ) : boolean
clear_cache_timber ( $cache_mode = self::CACHE_USE_DEFAULT )
clear_cache_twig ( )
get_cache ( string $key, string $group = self::CACHEGROUP, string $cache_mode = self::CACHE_USE_DEFAULT ) : boolean
get_loader ( ) : Twig_Loader_Filesystem
get_twig ( ) : Twig_Environment
render ( string $file, array $data = null, array | boolean $expires = false, string $cache_mode = self::CACHE_USE_DEFAULT ) : boolean | string
rrmdir ( string | false $dirPath )
set_cache ( string $key, string | boolean $value, string $group = self::CACHEGROUP, integer $expires, string $cache_mode = self::CACHE_USE_DEFAULT ) : string | boolean

보호된 메소드들

메소드 설명
delete_cache ( )
template_exists ( string $file ) : boolean

비공개 메소드들

메소드 설명
_get_cache_extension ( ) : Extension
_get_cache_mode ( string $cache_mode ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( boolean | string $caller = false )
$caller boolean | string the calling directory or false

choose_template() 공개 메소드

public choose_template ( array $filenames ) : boolean
$filenames array
리턴 boolean

clear_cache_timber() 공개 메소드

public clear_cache_timber ( $cache_mode = self::CACHE_USE_DEFAULT )

clear_cache_twig() 공개 메소드

public clear_cache_twig ( )

delete_cache() 보호된 메소드

protected delete_cache ( )

get_cache() 공개 메소드

public get_cache ( string $key, string $group = self::CACHEGROUP, string $cache_mode = self::CACHE_USE_DEFAULT ) : boolean
$key string
$group string
$cache_mode string
리턴 boolean

get_loader() 공개 메소드

public get_loader ( ) : Twig_Loader_Filesystem
리턴 Twig_Loader_Filesystem

get_twig() 공개 메소드

public get_twig ( ) : Twig_Environment
리턴 Twig_Environment

render() 공개 메소드

public render ( string $file, array $data = null, array | boolean $expires = false, string $cache_mode = self::CACHE_USE_DEFAULT ) : boolean | string
$file string
$data array
$expires array | boolean (array for options, false for none, integer for # of seconds)
$cache_mode string
리턴 boolean | string

rrmdir() 공개 정적인 메소드

public static rrmdir ( string | false $dirPath )
$dirPath string | false

set_cache() 공개 메소드

public set_cache ( string $key, string | boolean $value, string $group = self::CACHEGROUP, integer $expires, string $cache_mode = self::CACHE_USE_DEFAULT ) : string | boolean
$key string
$value string | boolean
$group string
$expires integer
$cache_mode string
리턴 string | boolean

template_exists() 보호된 메소드

protected template_exists ( string $file ) : boolean
$file string
리턴 boolean

프로퍼티 상세

$cache_mode 보호되어 있는 프로퍼티

protected $cache_mode

$cache_modes 공개적으로 정적으로 프로퍼티

public static $cache_modes

$locations 보호되어 있는 프로퍼티

protected $locations