class CacheMacro 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)

No description

createCache(IStorage $cacheStorage, string $key, OutputHelper[] $parents, array $args = null)

Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.

static void
endCache(OutputHelper[] $parents, array $args = null)

Ends the output cache.

Details

at line 30
void initialize()

Initializes before template parsing.

Return Value

void

at line 40
finalize()

Finishes template parsing.

at line 52
bool nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool

at line 70
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 83
static void initRuntime(Template $template)

No description

Parameters

Template $template

Return Value

void

at line 100
static OutputHelper|stdClass createCache(IStorage $cacheStorage, string $key, OutputHelper[] $parents, array $args = null)

Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.

Parameters

IStorage $cacheStorage
string $key
OutputHelper[] $parents
array $args

Return Value

OutputHelper|stdClass

at line 125
static void endCache(OutputHelper[] $parents, array $args = null)

Ends the output cache.

Parameters

OutputHelper[] $parents
array $args

Return Value

void

Traits

SmartObject