Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(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

return: string
param: HTMLPurifier_Config $config Instance of HTMLPurifier_Config

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

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

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

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