PHP 클래스 Smarty_CacheResource_Newscoop

상속: extends Smarty_CacheResource_Custom
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
populateTimestamp ( Smarty_Template_Cached $cached ) : void populate Cached Object with timestamp and exists from Resource
writeCachedContent ( Smarty_Internal_Template $_template, string $content ) : boolean Write the rendered template output to cache

보호된 메소드들

메소드 설명
delete ( string $tpl_name, string $cache_id, string $compile_id, integer | null $exp_time ) : integer Delete content from cache
fetch ( string $id, string $tpl_name, string $cache_id, string $compile_id, string &$content, integer &$mtime, integer $cacheLifetime ) : void fetch cached content and its modification time from data source
save ( string $id, string $tpl_name, string $cache_id, string $compile_id, integer | null $exp_time, string $content, array $campsiteVector = [] ) : boolean Save content to cache

메소드 상세

__construct() 공개 메소드

public __construct ( )

delete() 보호된 메소드

Delete content from cache
protected delete ( string $tpl_name, string $cache_id, string $compile_id, integer | null $exp_time ) : integer
$tpl_name string template name
$cache_id string cache id
$compile_id string compile id
$exp_time integer | null seconds till expiration time in seconds or null
리턴 integer number of deleted caches

fetch() 보호된 메소드

fetch cached content and its modification time from data source
protected fetch ( string $id, string $tpl_name, string $cache_id, string $compile_id, string &$content, integer &$mtime, integer $cacheLifetime ) : void
$id string unique cache content identifier
$tpl_name string template name
$cache_id string cache id
$compile_id string compile id
$content string cached content
$mtime integer cache modification timestamp (epoch)
$cacheLifetime integer cache lifetime in seconds
리턴 void

populateTimestamp() 공개 메소드

populate Cached Object with timestamp and exists from Resource
public populateTimestamp ( Smarty_Template_Cached $cached ) : void
$cached Smarty_Template_Cached
리턴 void

save() 보호된 메소드

Save content to cache
protected save ( string $id, string $tpl_name, string $cache_id, string $compile_id, integer | null $exp_time, string $content, array $campsiteVector = [] ) : boolean
$id string unique cache content identifier
$tpl_name string template name
$cache_id string cache id
$compile_id string compile id
$exp_time integer | null seconds till expiration or null
$content string content to cache
$campsiteVector array Newscoop's CampsiteVector for defining which page is being cached
리턴 boolean success

writeCachedContent() 공개 메소드

Write the rendered template output to cache
public writeCachedContent ( Smarty_Internal_Template $_template, string $content ) : boolean
$_template Smarty_Internal_Template template object
$content string content to cache
리턴 boolean success