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: 142 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_DoctypeRegistry:: (4 methods):
  register()
  get()
  make()
  getDoctypeFromConfig()


Class: HTMLPurifier_DoctypeRegistry  - X-Ref

register( $doctype, $xml = true, $modules = array()   X-Ref
Registers a doctype to the registry

param: string $doctype Name of doctype or literal doctype object
param: bool $xml
param: array $modules Modules doctype will load
param: array $tidy_modules Modules doctype will load for certain modes
param: array $aliases Alias names for doctype
param: string $dtd_public
param: string $dtd_system
return: HTMLPurifier_Doctype Editable registered doctype

get($doctype)   X-Ref
Retrieves reference to a doctype of a certain name

param: string $doctype Name of doctype
return: HTMLPurifier_Doctype Editable doctype object

make($config)   X-Ref
Creates a doctype based on a configuration object,
will perform initialization on the doctype

param: HTMLPurifier_Config $config
return: HTMLPurifier_Doctype

getDoctypeFromConfig($config)   X-Ref
Retrieves the doctype from the configuration object

param: HTMLPurifier_Config $config
return: string