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
)
:
void
Emits an error, providing helpful context.
Parameters
Name | Type | Description |
---|---|---|
$target | ||
$msg |
validate(
$interchange
)
:
void
Validates a fully-formed interchange object. Throws an HTMLPurifier_ConfigSchema_Exception if there's a problem.
Parameters
Name | Type | Description |
---|---|---|
$interchange |
validateDirective(
$d
)
:
void
Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.
Parameters
Name | Type | Description |
---|---|---|
$d |
validateDirectiveAliases(
$d
)
:
void
Extra validation if $aliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Parameters
Name | Type | Description |
---|---|---|
$d |
validateDirectiveAllowed(
$d
)
:
void
Extra validation if $allowed member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Parameters
Name | Type | Description |
---|---|---|
$d |
validateDirectiveValueAliases(
$d
)
:
void
Extra validation if $valueAliases member variable of HTMLPurifier_ConfigSchema_Interchange_Directive is defined.
Parameters
Name | Type | Description |
---|---|---|
$d |
validateId(
$id
)
:
void
Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.
Parameters
Name | Type | Description |
---|---|---|
$id |