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