PHP Class HTMLPurifier_Context, yii

显示文件 Open project: yiisoft/yii Class Usage Examples

Public Methods

Method Description
destroy ( string $name ) Destroys a variable in the context.
exists ( string $name ) : boolean Checks whether or not the variable exists.
get ( string $name, boolean $ignore_error = false ) : mixed Retrieves a variable reference from the context.
loadArray ( array $context_array ) Loads a series of variables from an associative array
register ( string $name, mixed &$ref ) Registers a variable into the context.

Method Details

destroy() public method

Destroys a variable in the context.
public destroy ( string $name )
$name string String name

exists() public method

Checks whether or not the variable exists.
public exists ( string $name ) : boolean
$name string String name
return boolean

get() public method

Retrieves a variable reference from the context.
public get ( string $name, boolean $ignore_error = false ) : mixed
$name string String name
$ignore_error boolean Boolean whether or not to ignore error
return mixed

loadArray() public method

Loads a series of variables from an associative array
public loadArray ( array $context_array )
$context_array array Assoc array of variables to load

register() public method

Registers a variable into the context.
public register ( string $name, mixed &$ref )
$name string String name
$ref mixed Reference to variable to be registered