Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_ErrorCollector Class Reference

Public Member Functions

 __construct ($context)
 send ($severity, $msg)
 getRaw ()
 getHTMLFormatted ($config, $errors=null)

Data Fields

const LINENO = 0
const SEVERITY = 1
const MESSAGE = 2
const CHILDREN = 3

Protected Attributes

 $errors
 $_current
 $_stacks = array(array())
 $locale
 $generator
 $context
 $lines = array()

Detailed Description

Error collection class that enables HTML Purifier to report HTML problems back to the user

Definition at line 7 of file ErrorCollector.php.


Constructor & Destructor Documentation

__construct ( context)

Definition at line 28 of file ErrorCollector.php.


Member Function Documentation

getHTMLFormatted ( config,
errors = null 
)

Default HTML formatting implementation for error messages

Parameters:
$configConfiguration array, vital for HTML output nature
$errorsErrors array to display; used for recursion.

Definition at line 144 of file ErrorCollector.php.

getRaw ( )

Retrieves raw error data for custom formatter to use

Parameters:
Listof arrays in format of array(line of error, error severity, error message, recursive sub-errors array)

Definition at line 135 of file ErrorCollector.php.

send ( severity,
msg 
)

Sends an error message to the collector for later use

Parameters:
$severityint Error severity, PHP error style (don't use E_USER_)
$msgstring Error message text
$subst1string First substitution for $msg
$subst2string ...

Definition at line 42 of file ErrorCollector.php.


Field Documentation

$_current [protected]

Definition at line 20 of file ErrorCollector.php.

$_stacks = array(array()) [protected]

Definition at line 21 of file ErrorCollector.php.

$context [protected]

Definition at line 24 of file ErrorCollector.php.

$errors [protected]

Definition at line 19 of file ErrorCollector.php.

$generator [protected]

Definition at line 23 of file ErrorCollector.php.

$lines = array() [protected]

Definition at line 26 of file ErrorCollector.php.

$locale [protected]

Definition at line 22 of file ErrorCollector.php.

const CHILDREN = 3

Definition at line 17 of file ErrorCollector.php.

const LINENO = 0

Identifiers for the returned error array. These are purposely numeric so list() can be used.

Definition at line 14 of file ErrorCollector.php.

const MESSAGE = 2

Definition at line 16 of file ErrorCollector.php.

const SEVERITY = 1

Definition at line 15 of file ErrorCollector.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations