HumHub Documentation (unofficial)

HTMLPurifier_DefinitionCache_Decorator_Cleanup extends HTMLPurifier_DefinitionCache_Decorator
in package

Definition cache decorator class that cleans up the cache whenever there is a cache miss.

Table of Contents

Properties

$cache  : mixed
Cache object we are decorating
$name  : string
The name of the decorator
$type  : mixed

Methods

__construct()  : mixed
add()  : mixed
Adds a definition object to the cache
checkDefType()  : bool
Checks if a definition's type jives with the cache's type
cleanup()  : mixed
Clears all expired (older version or revision) objects from cache
copy()  : HTMLPurifier_DefinitionCache_Decorator_Cleanup
Cross-compatible clone substitute
decorate()  : HTMLPurifier_DefinitionCache_Decorator
Lazy decorator function
flush()  : mixed
Clears all objects from cache
generateKey()  : string
Generates a unique identifier for a particular configuration
get()  : mixed
Retrieves a definition object from the cache
isOld()  : bool
Tests whether or not a key is old with respect to the configuration's version and revision number.
remove()  : mixed
Removes a definition object to the cache
replace()  : mixed
Replace an object in the cache
set()  : mixed
Unconditionally saves a definition object to the cache

Properties

$cache

Cache object we are decorating

public mixed $cache
Tags
type

HTMLPurifier_DefinitionCache

$name

The name of the decorator

public string $name = 'Cleanup'
Tags
type

string

Methods

isOld()

Tests whether or not a key is old with respect to the configuration's version and revision number.

public isOld(string $key, HTMLPurifier_Config $config) : bool
Parameters
$key : string

Key to test

$config : HTMLPurifier_Config

Instance of HTMLPurifier_Config to test against

Return values
bool

        
On this page

Search results