Search moodle.org's
Developer Documentation

See Release Notes

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