Class CachingHelper (namespace Nette\Templates)
Caching template helper.
Object | --CachingHelper
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 |
getCache
()
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 90 addFilepublic void addFile (string $file) Adds the file dependency.
|
||||||||||||||||||
line 102 addItempublic void addItem (string $item) Adds the cached item dependency.
|
||||||||||||||||||
line 51 createpublic static CachingHelper create (string $key, string $file, array $tags) Starts the output cache. Returns CachingHelper object if buffering was started.
|
||||||||||||||||||
line 116 getCacheprotected static Cache getCache ()
|
||||||||||||||||||
line 77 savepublic void save () Stops and saves the cache.
|