HumHub Documentation (unofficial)

HTMLPurifier_ErrorCollector
in package

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

Table of Contents

Constants

CHILDREN  = 3
LINENO  = 0
Identifiers for the returned error array. These are purposely numeric so list() can be used.
MESSAGE  = 2
SEVERITY  = 1

Properties

$_current  : mixed
$_stacks  : mixed
$context  : mixed
$errors  : mixed
$generator  : mixed
$lines  : mixed
$locale  : mixed

Methods

__construct()  : mixed
getHTMLFormatted()  : string
Default HTML formatting implementation for error messages
getRaw()  : mixed
Retrieves raw error data for custom formatter to use
send()  : mixed
Sends an error message to the collector for later use
_renderStruct()  : mixed

Constants

LINENO

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

public mixed LINENO = 0

Properties

$_stacks

protected mixed $_stacks = array(array())
Tags
type

array

$context

protected mixed $context
Tags
type

HTMLPurifier_Context

$generator

protected mixed $generator
Tags
type

HTMLPurifier_Generator

Methods

getHTMLFormatted()

Default HTML formatting implementation for error messages

public getHTMLFormatted(HTMLPurifier_Config $config[, array<string|int, mixed> $errors = null ]) : string
Parameters
$config : HTMLPurifier_Config

Configuration, vital for HTML output nature

$errors : array<string|int, mixed> = null

Errors array to display; used for recursion.

Return values
string

getRaw()

Retrieves raw error data for custom formatter to use

public getRaw() : mixed

send()

Sends an error message to the collector for later use

public send(int $severity, string $msg) : mixed
Parameters
$severity : int

Error severity, PHP error style (don't use E_USER_)

$msg : string

Error message text

_renderStruct()

private _renderStruct(mixed &$ret, mixed $struct[, mixed $line = null ][, mixed $col = null ]) : mixed
Parameters
$ret : mixed
$struct : mixed
$line : mixed = null
$col : mixed = null

        
On this page

Search results