Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.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