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