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
initRuntime(Template $template, stdClass $global)

No description

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.

Return Value

void

at line 37
finalize()

Finishes template parsing.

at line 49
bool nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool

at line 67
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 79
static void initRuntime(Template $template, stdClass $global)

No description

Parameters

Template $template
stdClass $global

Return Value

void

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.

Parameters

IStorage $cacheStorage
$key
$parents
array $args

Return Value

OutputHelper