Class CachingHelper (namespace Nette\Templates)


Caching template helper.

Object
   |
   --CachingHelper
Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Templates/Filters/CachingHelper.php (line 21)
Public Method Summary
void
addFile (string $file)
Adds the file dependency.
void
addItem (string $item)
Adds the cached item dependency.
static CachingHelper
create (string $key, string $file, array $tags)
Starts the output cache. Returns CachingHelper object if buffering was started.
void
save ()
Stops and saves the cache.
Protected Method Summary
protected static Cache
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 77

addFile

public void addFile (string $file)

Adds the file dependency.

Input
string $file
Output
void  

line 89

addItem

public void addItem (string $item)

Adds the cached item dependency.

Input
string $item
Output
void  

line 38

create

public static CachingHelper create (string $key, string $file, array $tags)

Starts the output cache. Returns CachingHelper object if buffering was started.

Input
string $key
string $file
array $tags
Output
CachingHelper  

line 103

getCache

protected static Cache getCache ()

Output
Cache  

line 64

save

public void save ()

Stops and saves the cache.

Output
void