Registry object that contains information about the current context.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
register(string $name, mixed &$ref)
Registers a variable into the context.
Registers a variable into the context. Parameters
|
# | ||||
public
&
|
get(string $name, bool $ignore_error = false): mixed
Retrieves a variable reference from the context.
Retrieves a variable reference from the context. Parameters
|
# | ||||
public
|
destroy(string $name)
Destroys a variable in the context.
Destroys a variable in the context. Parameters
|
# | ||||
public
|
exists(string $name): bool
Checks whether or not the variable exists.
Checks whether or not the variable exists. Parameters
|
# | ||||
public
|
loadArray(array $context_array)
Loads a series of variables from an associative array
Loads a series of variables from an associative array Parameters
|
# |