Runtime
class Runtime (View source)
The Runtime class handles all variables generated during runtime.
Those variables are created by Automad at runtime and independent from the Context and Shared objects.
Properties
private | $Automad | The Automad object. | |
private | $data | The runtime data array. |
Methods
string|null
get(string $key)
Return the requested runtime variable.
set(string $key, mixed $value)
Set a runtime variable.
array
shelve()
Get the $data array to be shelved and restored at a later point.
unshelve(array $shelf)
Restore shelved $data array by replacing it with the passed $shelf array.
Details
at line 80
string|null
get(string $key)
Return the requested runtime variable.
at line 131
set(string $key, mixed $value)
Set a runtime variable.
at line 140
array
shelve()
Get the $data array to be shelved and restored at a later point.
at line 151
unshelve(array $shelf)
Restore shelved $data array by replacing it with the passed $shelf array.