include/HTMLPurifier/standalone/HTMLPurifier/ConfigSchema/Validator.php
\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

$context= 'array()'
Context-stack to provide easy to read error messages.
Default value
array()Details- Type
- n/a
Methods

error(
$target, $msg
)
:
voidEmits an error, providing helpful context.
Parameters
| Name | Type | Description |
|---|---|---|
| $target | ||
| $msg |

validate(
$interchange
)
:
voidValidates a fully-formed interchange object. Throws an HTMLPurifier_ConfigSchema_Exception if there's a problem.
Parameters
| Name | Type | Description |
|---|---|---|
| $interchange |

validateDirective(
$d
)
:
voidValidates a HTMLPurifier_ConfigSchema_Interchange_Directive object.
Parameters
| Name | Type | Description |
|---|---|---|
| $d |

validateDirectiveAliases(
$d
)
:
voidExtra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Parameters
| Name | Type | Description |
|---|---|---|
| $d |

validateDirectiveAllowed(
$d
)
:
voidExtra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Parameters
| Name | Type | Description |
|---|---|---|
| $d |

validateDirectiveValueAliases(
$d
)
:
voidExtra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Parameters
| Name | Type | Description |
|---|---|---|
| $d |

validateId(
$id
)
:
voidValidates a HTMLPurifier_ConfigSchema_Interchange_Id object.
Parameters
| Name | Type | Description |
|---|---|---|
| $id |