|
Moodle
2.2.1
http://www.collinsharper.com
|
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 | |
Performs validations on HTMLPurifier_ConfigSchema_Interchange
Definition at line 11 of file Validator.php.
| __construct | ( | ) |
Definition at line 29 of file Validator.php.
| error | ( | $ | target, |
| $ | msg | ||
| ) | [protected] |
Emits an error, providing helpful context.
Definition at line 191 of file Validator.php.


| getFormattedContext | ( | ) | [protected] |
Returns a formatted context string.
Definition at line 200 of file Validator.php.

| 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.

| validateDirective | ( | $ | d | ) |
Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.
Definition at line 71 of file Validator.php.


| validateDirectiveAliases | ( | $ | d | ) |
Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Definition at line 159 of file Validator.php.


| validateDirectiveAllowed | ( | $ | d | ) |
Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Definition at line 112 of file Validator.php.


Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Definition at line 131 of file Validator.php.


| validateId | ( | $ | id | ) |
Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.
Definition at line 53 of file Validator.php.


| 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.


| $aliases |
Definition at line 17 of file Validator.php.
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.