Class HTMLPurifier_ErrorCollector

Description

Error collection class that enables HTML Purifier to report HTML

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

Located in /library/HTMLPurifier/ErrorCollector.php (line 7)


	
			
Variable Summary
mixed $context
mixed $errors
mixed $generator
mixed $locale
Method Summary
HTMLPurifier_ErrorCollector __construct ( $context)
void getHTMLFormatted ($config $config)
void getRaw (List 0)
void send ($line $severity, $severity $msg, $msg 2)
Variables
mixed $context (line 13)
  • access: protected
mixed $errors = array() (line 10)
  • access: protected
mixed $generator (line 12)
  • access: protected
mixed $locale (line 11)
  • access: protected
Methods
Constructor __construct (line 15)
  • access: public
HTMLPurifier_ErrorCollector __construct ( $context)
  • $context
getHTMLFormatted (line 74)

Default HTML formatting implementation for error messages

Default HTML formatting implementation for error messages

  • access: public
void getHTMLFormatted ($config $config)
  • $config $config: Configuration array, vital for HTML output nature
getRaw (line 66)

Retrieves raw error data for custom formatter to use

Retrieves raw error data for custom formatter to use

  • access: public
void getRaw (List 0)
  • List 0: of arrays in format of array(Error message text, token that caused error, tokens surrounding token)
send (line 27)

Sends an error message to the collector for later use

Sends an error message to the collector for later use

  • access: public
void send ($line $severity, $severity $msg, $msg 2)
  • $msg 2: string Error message text
  • $line $severity: Integer line number, or HTMLPurifier_Token that caused error
  • $severity $msg: int Error severity, PHP error style (don't use E_USER_)

Documentation generated on Thu, 19 Jun 2008 18:49:10 -0400 by phpDocumentor 1.4.2