PHP Class Nette\Bridges\CacheLatte\CacheMacro

.. {/cache}
Inheritance: implements Latte\IMacro, use trait Nette\SmartObject
Datei anzeigen Open project: nette/caching

Public Methods

Method Description
createCache ( Nette\Caching\IStorage $cacheStorage, $key, &$parents, array $args = NULL ) : OutputHelper Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.
finalize ( ) : array(prolog, Finishes template parsing.
initRuntime ( Template $template ) : void
initialize ( ) : void Initializes before template parsing.
nodeClosed ( MacroNode $node ) : void Node is closed.
nodeOpened ( MacroNode $node ) : boolean New node is found.

Method Details

createCache() public static method

Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.
public static createCache ( Nette\Caching\IStorage $cacheStorage, $key, &$parents, array $args = NULL ) : OutputHelper
$cacheStorage Nette\Caching\IStorage
$args array
return Nette\Caching\OutputHelper

finalize() public method

Finishes template parsing.
public finalize ( ) : array(prolog,
return array(prolog,

initRuntime() public static method

public static initRuntime ( Template $template ) : void
$template Latte\Runtime\Template
return void

initialize() public method

Initializes before template parsing.
public initialize ( ) : void
return void

nodeClosed() public method

Node is closed.
public nodeClosed ( MacroNode $node ) : void
$node Latte\MacroNode
return void

nodeOpened() public method

New node is found.
public nodeOpened ( MacroNode $node ) : boolean
$node Latte\MacroNode
return boolean