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: 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

return: HTMLPurifier_Doctype Editable registered doctype
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

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

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

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

return: HTMLPurifier_Doctype
param: HTMLPurifier_Config $config

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

return: string
param: HTMLPurifier_Config $config