Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(no description)

File Size: 248 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_ConfigSchema_Validator:: (10 methods):
  __construct()
  validate()
  validateId()
  validateDirective()
  validateDirectiveAllowed()
  validateDirectiveValueAliases()
  validateDirectiveAliases()
  with()
  error()
  getFormattedContext()


Class: HTMLPurifier_ConfigSchema_Validator  - X-Ref

Performs validations on HTMLPurifier_ConfigSchema_Interchange

__construct()   X-Ref
to test default's type.


validate($interchange)   X-Ref
Validates a fully-formed interchange object.

param: HTMLPurifier_ConfigSchema_Interchange $interchange
return: bool

validateId($id)   X-Ref
Validates a HTMLPurifier_ConfigSchema_Interchange_Id object.

param: HTMLPurifier_ConfigSchema_Interchange_Id $id

validateDirective($d)   X-Ref
Validates a HTMLPurifier_ConfigSchema_Interchange_Directive object.

param: HTMLPurifier_ConfigSchema_Interchange_Directive $d

validateDirectiveAllowed($d)   X-Ref
Extra validation if $allowed member variable of
HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

param: HTMLPurifier_ConfigSchema_Interchange_Directive $d

validateDirectiveValueAliases($d)   X-Ref
Extra validation if $valueAliases member variable of
HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

param: HTMLPurifier_ConfigSchema_Interchange_Directive $d

validateDirectiveAliases($d)   X-Ref
Extra validation if $aliases member variable of
HTMLPurifier_ConfigSchema_Interchange_Directive is defined.

param: HTMLPurifier_ConfigSchema_Interchange_Directive $d

with($obj, $member)   X-Ref
Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom
for validating simple member variables of objects.

param: $obj
param: $member
return: HTMLPurifier_ConfigSchema_ValidatorAtom

error($target, $msg)   X-Ref
Emits an error, providing helpful context.


getFormattedContext()   X-Ref
Returns a formatted context string.

return: string