class CacheMacro implements IMacro

Macro {cache} .

.. {/cache}

Methods

void
initialize()

Initializes before template parsing.

array(prolog,
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(Storage $cacheStorage, string $key, array|null $parents, array $args = null)

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

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

Ends the output cache.

static void
rollback(array $parents)

No description

Details

at line 32
void initialize()

Initializes before template parsing.

Return Value

void

at line 42
array(prolog, finalize()

Finishes template parsing.

Return Value

array(prolog, epilog)

at line 54
bool nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool

at line 73
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 87
static void initRuntime(Template $template)

Parameters

Template $template

Return Value

void

at line 102
static OutputHelper|stdClass createCache(Storage $cacheStorage, string $key, array|null $parents, array $args = null)

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

Parameters

Storage $cacheStorage
string $key
array|null $parents
array $args

Return Value

OutputHelper|stdClass

at line 130
static void endCache(array $parents, array $args = null)

Ends the output cache.

Parameters

array $parents
array $args

Return Value

void

at line 152
static void rollback(array $parents)

Parameters

array $parents

Return Value

void

Traits

Strict class for better experience.