PHP Class HTMLPurifier_Context, yii

Afficher le fichier Open project: yiisoft/yii Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

exists() public méthode

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

get() public méthode

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
Résultat mixed

loadArray() public méthode

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 méthode

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