\HTMLPurifier_ConfigSchema_Validator

Performs validations on HTMLPurifier_ConfigSchema_Interchange

Summary

Methods
Properties
Constants
__construct()
validate()
validateId()
validateDirective()
validateDirectiveAllowed()
validateDirectiveValueAliases()
validateDirectiveAliases()
No public properties found
No constants found
with()
error()
getFormattedContext()
$interchange
$aliases
$context
$parser
N/A
No private methods found
No private properties found
N/A

Properties

$interchange

$interchange

$aliases

$aliases

$context

$context

Context-stack to provide easy to read error messages.

$parser

$parser

to test default's type.

Methods

__construct()

__construct() : mixed

Returns

mixed —

validate()

validate(\HTMLPurifier_ConfigSchema_Interchange  $interchange) : bool

Validates a fully-formed interchange object.

Parameters

\HTMLPurifier_ConfigSchema_Interchange $interchange

Returns

bool —

validateId()

validateId(\HTMLPurifier_ConfigSchema_Interchange_Id  $id) : mixed

Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.

Parameters

\HTMLPurifier_ConfigSchema_Interchange_Id $id

Returns

mixed —

validateDirective()

validateDirective(\HTMLPurifier_ConfigSchema_Interchange_Directive  $d) : mixed

Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.

Parameters

\HTMLPurifier_ConfigSchema_Interchange_Directive $d

Returns

mixed —

validateDirectiveAllowed()

validateDirectiveAllowed(\HTMLPurifier_ConfigSchema_Interchange_Directive  $d) : mixed

Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

Parameters

\HTMLPurifier_ConfigSchema_Interchange_Directive $d

Returns

mixed —

validateDirectiveValueAliases()

validateDirectiveValueAliases(\HTMLPurifier_ConfigSchema_Interchange_Directive  $d) : mixed

Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

Parameters

\HTMLPurifier_ConfigSchema_Interchange_Directive $d

Returns

mixed —

validateDirectiveAliases()

validateDirectiveAliases(\HTMLPurifier_ConfigSchema_Interchange_Directive  $d) : mixed

Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

Parameters

\HTMLPurifier_ConfigSchema_Interchange_Directive $d

Returns

mixed —

with()

with( $obj,  $member) : \HTMLPurifier_ConfigSchema_ValidatorAtom

Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom for validating simple member variables of objects.

Parameters

$obj
$member

Returns

\HTMLPurifier_ConfigSchema_ValidatorAtom —

error()

error(mixed  $target, mixed  $msg) : mixed

Emits an error, providing helpful context.

Parameters

mixed $target
mixed $msg

Throws

\HTMLPurifier_ConfigSchema_Exception

Returns

mixed —

getFormattedContext()

getFormattedContext() : string

Returns a formatted context string.

Returns

string —