ILIAS
Release_4_4_x_branch Revision 61816
|
Performs validations on HTMLPurifier_ConfigSchema_Interchange. More...
Public Member Functions | |
__construct () | |
validate ($interchange) | |
Validates a fully-formed interchange object. | |
validateId ($id) | |
Validates a HTMLPurifier_ConfigSchema_Interchange_Id object. | |
validateDirective ($d) | |
Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object. | |
validateDirectiveAllowed ($d) | |
Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined. | |
validateDirectiveValueAliases ($d) | |
Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined. | |
validateDirectiveAliases ($d) | |
Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined. |
Data Fields | |
$aliases |
Protected Member Functions | |
with ($obj, $member) | |
Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom for validating simple member variables of objects. | |
error ($target, $msg) | |
Emits an error, providing helpful context. | |
getFormattedContext () | |
Returns a formatted context string. |
Protected Attributes | |
$interchange | |
Easy to access global objects. | |
$context = array() | |
Context-stack to provide easy to read error messages. | |
$parser | |
HTMLPurifier_VarParser to test default's type. |
Performs validations on HTMLPurifier_ConfigSchema_Interchange.
Definition at line 11 of file Validator.php.
HTMLPurifier_ConfigSchema_Validator::__construct | ( | ) |
Definition at line 29 of file Validator.php.
|
protected |
Emits an error, providing helpful context.
Definition at line 191 of file Validator.php.
References getFormattedContext().
Referenced by validate(), validateDirective(), validateDirectiveAliases(), validateDirectiveAllowed(), validateDirectiveValueAliases(), and validateId().
|
protected |
Returns a formatted context string.
Definition at line 200 of file Validator.php.
Referenced by error(), and with().
HTMLPurifier_ConfigSchema_Validator::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.
References $interchange, error(), and validateDirective().
HTMLPurifier_ConfigSchema_Validator::validateDirective | ( | $d | ) |
Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.
Definition at line 71 of file Validator.php.
References $d, HTMLPurifier_VarParser\$stringTypes, HTMLPurifier_VarParser\$types, error(), validateDirectiveAliases(), validateDirectiveAllowed(), validateDirectiveValueAliases(), validateId(), and with().
Referenced by validate().
HTMLPurifier_ConfigSchema_Validator::validateDirectiveAliases | ( | $d | ) |
Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Definition at line 159 of file Validator.php.
References $d, error(), validateId(), and with().
Referenced by validateDirective().
HTMLPurifier_ConfigSchema_Validator::validateDirectiveAllowed | ( | $d | ) |
Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Definition at line 112 of file Validator.php.
References $d, error(), and with().
Referenced by validateDirective().
HTMLPurifier_ConfigSchema_Validator::validateDirectiveValueAliases | ( | $d | ) |
Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Definition at line 131 of file Validator.php.
References $d, error(), and with().
Referenced by validateDirective().
HTMLPurifier_ConfigSchema_Validator::validateId | ( | $id | ) |
Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.
Definition at line 53 of file Validator.php.
References error(), and with().
Referenced by validateDirective(), and validateDirectiveAliases().
|
protected |
Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom for validating simple member variables of objects.
Definition at line 184 of file Validator.php.
References getFormattedContext().
Referenced by validateDirective(), validateDirectiveAliases(), validateDirectiveAllowed(), validateDirectiveValueAliases(), and validateId().
HTMLPurifier_ConfigSchema_Validator::$aliases |
Definition at line 17 of file Validator.php.
|
protected |
Context-stack to provide easy to read error messages.
Definition at line 22 of file Validator.php.
|
protected |
Easy to access global objects.
Definition at line 17 of file Validator.php.
Referenced by validate().
|
protected |
HTMLPurifier_VarParser to test default's type.
Definition at line 27 of file Validator.php.