Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
HTMLPurifier_ErrorCollector Class Reference

Public Member Functions

 __construct ($context)
 
 getHTMLFormatted ($config, $errors=null)
 Default HTML formatting implementation for error messages.
 
 getRaw ()
 Retrieves raw error data for custom formatter to use.
 
 send ($severity, $msg)
 Sends an error message to the collector for later use.
 

Public Attributes

const CHILDREN = 3
 
const LINENO = 0
 Identifiers for the returned error array.
 
const MESSAGE = 2
 
const SEVERITY = 1
 

Protected Attributes

 $_current
 @type array
 
 $_stacks = array(array())
 @type array
 
 $context
 @type HTMLPurifier_Context
 
 $errors
 @type array
 
 $generator
 @type HTMLPurifier_Generator
 
 $lines = array()
 @type array
 
 $locale
 @type HTMLPurifier_Language
 

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_ErrorCollector::__construct ( $context)
Parameters
HTMLPurifier_Context$context

Member Function Documentation

◆ getHTMLFormatted()

HTMLPurifier_ErrorCollector::getHTMLFormatted ( $config,
$errors = null )

Default HTML formatting implementation for error messages.

Parameters
HTMLPurifier_Config$configConfiguration, vital for HTML output nature
array$errorsErrors array to display; used for recursion.
Return values
string

◆ send()

HTMLPurifier_ErrorCollector::send ( $severity,
$msg )

Sends an error message to the collector for later use.

Parameters
int$severityError severity, PHP error style (don't use E_USER_)
string$msgError message text

Member Data Documentation

◆ LINENO

const HTMLPurifier_ErrorCollector::LINENO = 0

Identifiers for the returned error array.

These are purposely numeric so list() can be used.


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