PHP Class HTMLPurifier_ErrorCollector, yii

Show file Open project: yiisoft/yii

Protected Properties

Property Type Description
$_current
$_stacks
$context
$errors
$generator
$lines
$locale

Public Methods

Method Description
__construct ( HTMLPurifier_Context $context )
getHTMLFormatted ( HTMLPurifier_Config $config, array $errors = null ) : string Default HTML formatting implementation for error messages
getRaw ( ) Retrieves raw error data for custom formatter to use
send ( integer $severity, string $msg ) Sends an error message to the collector for later use

Private Methods

Method Description
_renderStruct ( &$ret, $struct, $line = null, $col = null )

Method Details

__construct() public method

public __construct ( HTMLPurifier_Context $context )
$context HTMLPurifier_Context

getHTMLFormatted() public method

Default HTML formatting implementation for error messages
public getHTMLFormatted ( HTMLPurifier_Config $config, array $errors = null ) : string
$config HTMLPurifier_Config Configuration, vital for HTML output nature
$errors array Errors array to display; used for recursion.
return string

getRaw() public method

Retrieves raw error data for custom formatter to use
public getRaw ( )

send() public method

Sends an error message to the collector for later use
public send ( integer $severity, string $msg )
$severity integer Error severity, PHP error style (don't use E_USER_)
$msg string Error message text

Property Details

$_current protected property

protected $_current

$_stacks protected property

protected $_stacks

$context protected property

protected $context

$errors protected property

protected $errors

$generator protected property

protected $generator

$lines protected property

protected $lines

$locale protected property

protected $locale