API - XOOPS 2.5.11 Beta 2
By monxoops.fr
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

Constructor & Destructor Documentation

◆ __construct()

__construct (   $context)
Parameters
HTMLPurifier_Context$context

Member Function Documentation

◆ getHTMLFormatted()

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.
Returns
string

◆ getRaw()

getRaw ( )

Retrieves raw error data for custom formatter to use

◆ send()

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

Field Documentation

◆ $_current

$_current
protected

@type array

◆ $_stacks

$_stacks = array(array())
protected

@type array

◆ $context

$context
protected

◆ $errors

$errors
protected

@type array

◆ $generator

$generator
protected

◆ $lines

$lines = array()
protected

@type array

◆ $locale

$locale
protected

◆ CHILDREN

const CHILDREN = 3

◆ LINENO

const LINENO = 0

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

◆ MESSAGE

const MESSAGE = 2

◆ SEVERITY

const SEVERITY = 1

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