CacheMacro
class CacheMacro extends Object implements IMacro
Macro {cache} ... {/cache}
Methods
void
initialize()
Initializes before template parsing.
finalize()
Finishes template parsing.
bool
nodeOpened(MacroNode $node)
New node is found.
void
nodeClosed(MacroNode $node)
Node is closed.
static void
static OutputHelper
createCache(IStorage $cacheStorage, $key, $parents, array $args = NULL)
Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.
Details
at line 29
void
initialize()
Initializes before template parsing.
at line 39
finalize()
Finishes template parsing.
at line 51
bool
nodeOpened(MacroNode $node)
New node is found.
at line 66
void
nodeClosed(MacroNode $node)
Node is closed.
at line 78
static void
initRuntime(Template $template, stdClass $global)
No description
at line 94
static OutputHelper
createCache(IStorage $cacheStorage, $key, $parents, array $args = NULL)
Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.