Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_ConfigSchema_Validator Class Reference

Public Member Functions

 __construct ()
 validate ($interchange)
 validateId ($id)
 validateDirective ($d)
 validateDirectiveAllowed ($d)
 validateDirectiveValueAliases ($d)
 validateDirectiveAliases ($d)

Data Fields

 $aliases

Protected Member Functions

 with ($obj, $member)
 error ($target, $msg)
 getFormattedContext ()

Protected Attributes

 $interchange
 $context = array()
 $parser

Detailed Description

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.

Definition at line 11 of file Validator.php.


Constructor & Destructor Documentation

Definition at line 29 of file Validator.php.


Member Function Documentation

error ( target,
msg 
) [protected]

Emits an error, providing helpful context.

Definition at line 191 of file Validator.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getFormattedContext ( ) [protected]

Returns a formatted context string.

Definition at line 200 of file Validator.php.

Here is the caller graph for this function:

validate ( interchange)

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

Definition at line 37 of file Validator.php.

Here is the call graph for this function:

Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.

Definition at line 71 of file Validator.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 159 of file Validator.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 112 of file Validator.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 131 of file Validator.php.

Here is the call graph for this function:

Here is the caller graph for this function:

validateId ( id)

Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.

Definition at line 53 of file Validator.php.

Here is the call graph for this function:

Here is the caller graph for this function:

with ( obj,
member 
) [protected]

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

Definition at line 184 of file Validator.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$aliases

Definition at line 17 of file Validator.php.

$context = array() [protected]

Context-stack to provide easy to read error messages.

Definition at line 22 of file Validator.php.

$interchange [protected]

Easy to access global objects.

Definition at line 17 of file Validator.php.

$parser [protected]

HTMLPurifier_VarParser to test default's type.

Definition at line 27 of file Validator.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations