Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

File Size: 248 lines (8 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