class Runtime

internal  
 

Runtime helpers for Latte v3.

Methods

__construct(Storage $storage)

No description

void
initialize(Template $template)

No description

bool
createCache(string $key, array|null $args = null)

Starts the output cache. Returns true if buffering was started.

void
end()

Ends the output cache.

void
rollback()

Discards the buffered output without saving to the cache.

Details

at line 27
__construct(Storage $storage)

No description

Parameters

Storage $storage

at line 33
void initialize(Template $template)

No description

Parameters

Template $template

Return Value

void

at line 48
bool createCache(string $key, array|null $args = null)

Starts the output cache. Returns true if buffering was started.

Parameters

string $key
array|null $args

{if?: bool, tags?: string[], expire?: string, expiration?: string, dependencies?: callable}

Return Value

bool

at line 82
void end()

Ends the output cache.

Return Value

void

at line 94
void rollback()

Discards the buffered output without saving to the cache.

Return Value

void