Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
HTMLPurifier_Context Class Reference

Public Member Functions

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

Member Function Documentation

◆ destroy()

HTMLPurifier_Context::destroy ( $name)

Destroys a variable in the context.

Parameters
string$nameString name

◆ exists()

HTMLPurifier_Context::exists ( $name)

Checks whether or not the variable exists.

Parameters
string$nameString name
Return values
bool

◆ 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
Return values
mixed

◆ loadArray()

HTMLPurifier_Context::loadArray ( $context_array)

Loads a series of variables from an associative array.

Parameters
array$context_arrayAssoc array of variables to load

◆ register()

HTMLPurifier_Context::register ( $name,
& $ref )

Registers a variable into the context.

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

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