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

Defines 1 class

HTMLPurifier_DefinitionCacheFactory:: (5 methods):
  setup()
  instance()
  register()
  create()
  addDecorator()


Class: HTMLPurifier_DefinitionCacheFactory  - X-Ref

Responsible for creating definition caches.

setup()   X-Ref
Initialize default decorators


instance($prototype = null)   X-Ref
Retrieves an instance of global definition cache factory.

param: HTMLPurifier_DefinitionCacheFactory $prototype
return: HTMLPurifier_DefinitionCacheFactory

register($short, $long)   X-Ref
Registers a new definition cache object

param: string $short Short name of cache object, for reference
param: string $long Full class name of cache object, for construction

create($type, $config)   X-Ref
Factory method that creates a cache object based on configuration

param: string $type Name of definitions handled by cache
param: HTMLPurifier_Config $config Config instance
return: mixed

addDecorator($decorator)   X-Ref
Registers a decorator to add to all new cache objects

param: HTMLPurifier_DefinitionCache_Decorator|string $decorator An instance or the name of a decorator