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 27
void
initialize()
Initializes before template parsing.
at line 37
finalize()
Finishes template parsing.
at line 49
bool
nodeOpened(MacroNode $node)
New node is found.
at line 67
void
nodeClosed(MacroNode $node)
Node is closed.
at line 79
static void
initRuntime(Template $template, stdClass $global)
No description
at line 95
static OutputHelper
createCache(IStorage $cacheStorage, $key, $parents, array $args = NULL)
Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.