Error collection class that enables HTML Purifier to report HTML problems back to the user
| Methods | ||||||
|---|---|---|---|---|---|---|
| 
					
	public
					
					
				 | __construct(HTMLPurifier_Context $context) | # | ||||
| 
					
	public
					
					
				 | send(int $severity, string $msg)
		Sends an error message to the collector for later use
	 Sends an error message to the collector for later use Parameters
 | # | ||||
| 
					
	public
					
					
				 | getRaw()
		Retrieves raw error data for custom formatter to use
	 Retrieves raw error data for custom formatter to use | # | ||||
| 
					
	public
					
					
				 | getHTMLFormatted(HTMLPurifier_Config $config, array $errors = null): string
		Default HTML formatting implementation for error messages
	 Default HTML formatting implementation for error messages Parameters
 | # | ||||
| Constants | ||
|---|---|---|
| 
					
	public
				 | LINENO = 0
		Identifiers for the returned error array. These are purposely numeric
so list() can be used.
	 Identifiers for the returned error array. These are purposely numeric so list() can be used. | # | 
| 
					
	public
				 | SEVERITY = 1 | # | 
| 
					
	public
				 | MESSAGE = 2 | # | 
| 
					
	public
				 | CHILDREN = 3 | # | 
| Properties | |||
|---|---|---|---|
| 
	protected
					
					
				 |  | $errors | # | 
| 
	protected
					
					
				 |  | $_current | # | 
| 
	protected
					
					
				 |  | $_stacks = [[]] | # | 
| 
	protected
					
					
				 |  | $locale | # | 
| 
	protected
					
					
				 |  | $generator | # | 
| 
	protected
					
					
				 |  | $context | # | 
| 
	protected
					
					
				 |  | $lines = [] | # |