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 34)
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 90

addFile

public void addFile (string $file)

Adds the file dependency.

Input
string $file
Output
void  

line 102

addItem

public void addItem (string $item)

Adds the cached item dependency.

Input
string $item
Output
void  

line 51

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 116

getCache

protected static Cache getCache ()

Output
Cache  

line 77

save

public void save ()

Stops and saves the cache.

Output
void