Class HTMLPurifier_ErrorCollector

Description

Error collection class that enables HTML Purifier to report HTML

problems back to the user

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 3453)


	
			
Class Constant Summary
 CHILDREN = 3
 LINENO = 0
 MESSAGE = 2
 SEVERITY = 1
Variable Summary
mixed $context
mixed $errors
mixed $generator
mixed $lines
mixed $locale
mixed $_current
mixed $_stacks
Method Summary
HTMLPurifier_ErrorCollector __construct ( $context)
void getHTMLFormatted ($config $config, [$errors $errors = null])
void getRaw (List 0)
void send ($severity $severity, $msg $msg, $subst1 2, $subst2 3)
Variables
mixed $context (line 3470)
  • access: protected
mixed $errors (line 3465)
  • access: protected
mixed $generator (line 3469)
  • access: protected
mixed $lines = array() (line 3472)
  • access: protected
mixed $locale (line 3468)
  • access: protected
mixed $_current (line 3466)
  • access: protected
mixed $_stacks = array(array()) (line 3467)
  • access: protected
Methods
Constructor __construct (line 3474)
  • access: public
HTMLPurifier_ErrorCollector __construct ( $context)
  • $context
getHTMLFormatted (line 3590)

Default HTML formatting implementation for error messages

  • access: public
void getHTMLFormatted ($config $config, [$errors $errors = null])
  • $config $config: Configuration array, vital for HTML output nature
  • $errors $errors: Errors array to display; used for recursion.
getRaw (line 3581)

Retrieves raw error data for custom formatter to use

  • access: public
void getRaw (List 0)
  • List 0: of arrays in format of array(line of error, error severity, error message, recursive sub-errors array)
send (line 3488)

Sends an error message to the collector for later use

  • access: public
void send ($severity $severity, $msg $msg, $subst1 2, $subst2 3)
  • $subst1 2: string First substitution for $msg
  • $subst2 3: string ...
  • $severity $severity: int Error severity, PHP error style (don't use E_USER_)
  • $msg $msg: string Error message text
Class Constants
CHILDREN = 3 (line 3463)
LINENO = 0 (line 3460)

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

MESSAGE = 2 (line 3462)
SEVERITY = 1 (line 3461)

Documentation generated on Sun, 06 Mar 2011 00:24:05 -0500 by phpDocumentor 1.4.3