Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are 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