Class CachingHelper (namespace Nette\Templates)


Caching template helper.

Object
   |
   --CachingHelper
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Templates/Filters/CachingHelper.php (line 33)
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 89

addFile

public void addFile (string $file)

Adds the file dependency.

Input
string $file
Output
void  

line 101

addItem

public void addItem (string $item)

Adds the cached item dependency.

Input
string $item
Output
void  

line 50

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 115

getCache

protected static Cache getCache ()

Output
Cache  

line 76

save

public void save ()

Stops and saves the cache.

Output
void