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

Defines 1 class

HTMLPurifier_DefinitionCache:: (4 methods):
  __construct()
  generateKey()
  isOld()
  checkDefType()


Class: HTMLPurifier_DefinitionCache  - X-Ref

Abstract class representing Definition cache managers that implements
useful common methods and is a factory.

__construct($type)   X-Ref

param: string $type Type of definition objects this instance of the

generateKey($config)   X-Ref
Generates a unique identifier for a particular configuration

param: HTMLPurifier_Config $config Instance of HTMLPurifier_Config
return: string

isOld($key, $config)   X-Ref
Tests whether or not a key is old with respect to the configuration's
version and revision number.

param: string $key Key to test
param: HTMLPurifier_Config $config Instance of HTMLPurifier_Config to test against
return: bool

checkDefType($def)   X-Ref
Checks if a definition's type jives with the cache's type

param: HTMLPurifier_Definition $def Definition object to check
return: bool true if good, false if not