Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(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.

return: bool
param: HTMLPurifier_ConfigSchema_Interchange $interchange

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.

return: HTMLPurifier_ConfigSchema_ValidatorAtom
param: $obj
param: $member

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


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

return: string