Class HTMLPurifier_Context
Inheritance | HTMLPurifier_Context |
---|
Registry object that contains information about the current context.
Public Methods
Method | Description | Defined By |
---|---|---|
destroy() | Destroys a variable in the context. | HTMLPurifier_Context |
exists() | Checks whether or not the variable exists. | HTMLPurifier_Context |
get() | Retrieves a variable reference from the context. | HTMLPurifier_Context |
loadArray() | Loads a series of variables from an associative array | HTMLPurifier_Context |
register() | Registers a variable into the context. | HTMLPurifier_Context |
Method Details
Destroys a variable in the context.
public void destroy ( $name ) | ||
$name | string | String name |
Checks whether or not the variable exists.
public bool exists ( $name ) | ||
$name | string | String name |
Retrieves a variable reference from the context.
public &mixed get ( $name, $ignore_error = false ) | ||
$name | string | String name |
$ignore_error | bool | Boolean whether or not to ignore error |
Loads a series of variables from an associative array
public void loadArray ( $context_array ) | ||
$context_array | array | Assoc array of variables to load |
Registers a variable into the context.
public void register ( $name, <b>&</b>$ref ) | ||
$name | string | String name |
$ref | mixed | Reference to variable to be registered |