Class HTMLPurifier_ErrorStruct

Description

Records errors for particular segments of an HTML document such as tokens, attributes or CSS properties. They can contain error structs (which apply to components of what they represent), but their main purpose is to hold errors applying to whatever struct is being used.

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


	
			
Class Constant Summary
 ATTR = 1
 CSSPROP = 2
 TOKEN = 0
Variable Summary
mixed $children
mixed $errors
mixed $type
mixed $value
Method Summary
void addError ( $severity,  $message)
void getChild ( $type,  $id)
Variables
mixed $children = array() (line 3700)

Child ErrorStructs that are from this structure. For example, a TOKEN

ErrorStruct would contain ATTR ErrorStructs. This is a multi-dimensional array in structure: [TYPE]['identifier']

  • access: public
mixed $errors = array() (line 3693)

Errors registered for this structure.

  • access: public
mixed $type (line 3679)

Type of this struct.

  • access: public
mixed $value (line 3688)

Value of the struct we are recording errors for. There are various

values for this:

  • TOKEN: Instance of HTMLPurifier_Token
  • ATTR: array('attr-name', 'value')
  • CSSPROP: array('prop-name', 'value')

  • access: public
Methods
addError (line 3710)
  • access: public
void addError ( $severity,  $message)
  • $severity
  • $message
getChild (line 3702)
  • access: public
void getChild ( $type,  $id)
  • $type
  • $id
Class Constants
ATTR = 1 (line 3673)
CSSPROP = 2 (line 3674)
TOKEN = 0 (line 3672)

Possible values for $children first-key. Note that top-level structures are automatically token-level.

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