ILIAS
Release_5_0_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. |
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 | |
HTMLPurifier_ConfigSchema_Interchange | |
$aliases | |
array | |
$context = array() | |
Context-stack to provide easy to read error messages. | |
$parser | |
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 36 of file Validator.php.
|
protected |
Emits an error, providing helpful context.
HTMLPurifier_ConfigSchema_Exception |
Definition at line 228 of file Validator.php.
References getFormattedContext().
Referenced by validate(), validateDirective(), validateDirectiveAliases(), validateDirectiveAllowed(), validateDirectiveValueAliases(), and validateId().
|
protected |
Returns a formatted context string.
Definition at line 242 of file Validator.php.
Referenced by error(), and with().
HTMLPurifier_ConfigSchema_Validator::validate | ( | $interchange | ) |
Validates a fully-formed interchange object.
HTMLPurifier_ConfigSchema_Interchange | $interchange |
Definition at line 46 of file Validator.php.
References $interchange, error(), and validateDirective().
HTMLPurifier_ConfigSchema_Validator::validateDirective | ( | $d | ) |
Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.
HTMLPurifier_ConfigSchema_Interchange_Directive | $d |
Definition at line 86 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.
HTMLPurifier_ConfigSchema_Interchange_Directive | $d |
Definition at line 190 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.
HTMLPurifier_ConfigSchema_Interchange_Directive | $d |
Definition at line 129 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.
HTMLPurifier_ConfigSchema_Interchange_Directive | $d |
Definition at line 154 of file Validator.php.
References $d, error(), and with().
Referenced by validateDirective().
HTMLPurifier_ConfigSchema_Validator::validateId | ( | $id | ) |
Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.
HTMLPurifier_ConfigSchema_Interchange_Id | $id |
Definition at line 66 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.
$obj | |
$member |
Definition at line 219 of file Validator.php.
References getFormattedContext().
Referenced by validateDirective(), validateDirectiveAliases(), validateDirectiveAllowed(), validateDirectiveValueAliases(), and validateId().
|
protected |
array
Definition at line 22 of file Validator.php.
|
protected |
Context-stack to provide easy to read error messages.
array
Definition at line 28 of file Validator.php.
|
protected |
HTMLPurifier_ConfigSchema_Interchange
Definition at line 17 of file Validator.php.
Referenced by validate().
|
protected |