HumHub Documentation (unofficial)

HTMLPurifier_ConfigSchema_Validator
in package

Performs validations on HTMLPurifier_ConfigSchema_Interchange

Tags
note

If you see '// handled by InterchangeBuilder', that means a design decision in that class would prevent this validation from ever being necessary. We have them anyway, however, for redundancy.

Table of Contents

Properties

$aliases  : mixed
$context  : mixed
Context-stack to provide easy to read error messages.
$interchange  : mixed
$parser  : mixed
to test default's type.

Methods

__construct()  : mixed
validate()  : bool
Validates a fully-formed interchange object.
validateDirective()  : mixed
Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.
validateDirectiveAliases()  : mixed
Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
validateDirectiveAllowed()  : mixed
Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
validateDirectiveValueAliases()  : mixed
Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
validateId()  : mixed
Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.
error()  : mixed
Emits an error, providing helpful context.
getFormattedContext()  : string
Returns a formatted context string.
with()  : HTMLPurifier_ConfigSchema_ValidatorAtom
Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom for validating simple member variables of objects.

Properties

$aliases

protected mixed $aliases
Tags
type

array

$context

Context-stack to provide easy to read error messages.

protected mixed $context = array()
Tags
type

array

$interchange

protected mixed $interchange
Tags
type

HTMLPurifier_ConfigSchema_Interchange

$parser

to test default's type.

protected mixed $parser
Tags
type

HTMLPurifier_VarParser

Methods

getFormattedContext()

Returns a formatted context string.

protected getFormattedContext() : string
Return values
string

        
On this page

Search results