include/HTMLPurifier/standalone/HTMLPurifier/ConfigSchema/Validator.php

Show: inherited
Table of Contents

\HTMLPurifier_ConfigSchema_Validator

Package: SugarCRM

Performs validations on HTMLPurifier_ConfigSchema_Interchange

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.  

Properties

Propertypublic  $aliases= ''

Easy to access global objects.

Details
Type
n/a
Propertyprotected  $context= 'array()'

Context-stack to provide easy to read error messages.

Default valuearray()Details
Type
n/a
Propertyprotected  $interchange= ''

Easy to access global objects.

Details
Type
n/a
Propertyprotected  $parser= ''

HTMLPurifier_VarParser to test default's type.

Details
Type
n/a

Methods

methodpublic__construct( ) : void

methodprotectederror(  $target,  $msg ) : void

Emits an error, providing helpful context.

Parameters
Name Type Description
$target
$msg
methodprotectedgetFormattedContext( ) : void

Returns a formatted context string.

methodpublicvalidate(  $interchange ) : void

Validates a fully-formed interchange object. Throws an HTMLPurifier_ConfigSchema_Exception if there's a problem.

Parameters
Name Type Description
$interchange
methodpublicvalidateDirective(  $d ) : void

Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.

Parameters
Name Type Description
$d
methodpublicvalidateDirectiveAliases(  $d ) : void

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

Parameters
Name Type Description
$d
methodpublicvalidateDirectiveAllowed(  $d ) : void

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

Parameters
Name Type Description
$d
methodpublicvalidateDirectiveValueAliases(  $d ) : void

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

Parameters
Name Type Description
$d
methodpublicvalidateId(  $id ) : void

Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.

Parameters
Name Type Description
$id
methodprotectedwith(  $obj,  $member ) : void

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

Parameters
Name Type Description
$obj
$member
Documentation was generated by DocBlox 0.18.1.