HumHub Documentation (unofficial)

HTMLPurifier_DefinitionCache_Null extends HTMLPurifier_DefinitionCache
in package

Null cache object to use when no caching is on.

Table of Contents

Properties

$type  : mixed

Methods

__construct()  : mixed
add()  : bool
Adds a definition object to the cache
checkDefType()  : bool
Checks if a definition's type jives with the cache's type
cleanup()  : bool
Clears all expired (older version or revision) objects from cache
flush()  : bool
Clears all objects from cache
generateKey()  : string
Generates a unique identifier for a particular configuration
get()  : bool
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()  : bool
Removes a definition object to the cache
replace()  : bool
Replace an object in the cache
set()  : bool
Unconditionally saves a definition object to the cache

Properties

Methods

__construct()

public __construct(string $type) : mixed
Parameters
$type : string

Type of definition objects this instance of the cache will handle.

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