Class HTMLPurifier_Context

InheritanceHTMLPurifier_Context

Registry object that contains information about the current context.

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

destroy() public method

Destroys a variable in the context.

public void destroy ( $name )
$name string

String name

exists() public method

Checks whether or not the variable exists.

public bool exists ( $name )
$name string

String name

get() public method

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

loadArray() public method

Loads a series of variables from an associative array

public void loadArray ( $context_array )
$context_array array

Assoc array of variables to load

register() public method

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