Cheetah
Public Member Functions | List of all members
HTMLPurifier_Context Class Reference

Public Member Functions

 register ($name, &$ref)
 
get ($name, $ignore_error=false)
 
 destroy ($name)
 
 exists ($name)
 
 loadArray ($context_array)
 

Detailed Description

Registry object that contains information about the current context.

Warning
Is a bit buggy when variables are set to null: it thinks they don't exist! So use false instead, please.
Note
Since the variables Context deals with may not be objects, references are very important here! Do not remove!

Definition at line 3068 of file HTMLPurifier.standalone.php.

Member Function Documentation

◆ destroy()

HTMLPurifier_Context::destroy (   $name)

Destroys a variable in the context.

Parameters
string$nameString name

Definition at line 3119 of file HTMLPurifier.standalone.php.

◆ exists()

HTMLPurifier_Context::exists (   $name)

Checks whether or not the variable exists.

Parameters
string$nameString name
Returns
bool

Definition at line 3136 of file HTMLPurifier.standalone.php.

◆ get()

& HTMLPurifier_Context::get (   $name,
  $ignore_error = false 
)

Retrieves a variable reference from the context.

Parameters
string$nameString name
bool$ignore_errorBoolean whether or not to ignore error
Returns
mixed

Definition at line 3100 of file HTMLPurifier.standalone.php.

◆ loadArray()

HTMLPurifier_Context::loadArray (   $context_array)

Loads a series of variables from an associative array

Parameters
array$context_arrayAssoc array of variables to load

Definition at line 3145 of file HTMLPurifier.standalone.php.

◆ register()

HTMLPurifier_Context::register (   $name,
$ref 
)

Registers a variable into the context.

Parameters
string$nameString name
mixed$refReference to variable to be registered

Definition at line 3082 of file HTMLPurifier.standalone.php.


The documentation for this class was generated from the following file: