Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is 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