\HTMLPurifier_DefinitionCache_Null

Null cache object to use when no caching is on.

Summary

Methods
Properties
Constants
__construct()
generateKey()
isOld()
checkDefType()
add()
set()
replace()
get()
remove()
flush()
cleanup()
$type
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$type

$type : 

Type

Methods

__construct()

__construct(string  $type) 

Parameters

string $type

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

generateKey()

generateKey(\HTMLPurifier_Config  $config) : string

Generates a unique identifier for a particular configuration

Parameters

\HTMLPurifier_Config $config

Instance of HTMLPurifier_Config

Returns

string

isOld()

isOld(string  $key, \HTMLPurifier_Config  $config) : boolean

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

Parameters

string $key

Key to test

\HTMLPurifier_Config $config

Instance of HTMLPurifier_Config to test against

Returns

boolean

checkDefType()

checkDefType(\HTMLPurifier_Definition  $def) : boolean

Checks if a definition's type jives with the cache's type

Parameters

\HTMLPurifier_Definition $def

Definition object to check

Returns

boolean —

true if good, false if not

set()

set(\HTMLPurifier_Definition  $def, \HTMLPurifier_Config  $config) : boolean

Unconditionally saves a definition object to the cache

Parameters

\HTMLPurifier_Definition $def
\HTMLPurifier_Config $config

Returns

boolean

get()

get(\HTMLPurifier_Config  $config) : boolean

Retrieves a definition object from the cache

Parameters

\HTMLPurifier_Config $config

Returns

boolean

remove()

remove(\HTMLPurifier_Config  $config) : boolean

Removes a definition object to the cache

Parameters

\HTMLPurifier_Config $config

Returns

boolean

flush()

flush(\HTMLPurifier_Config  $config) : boolean

Clears all objects from cache

Parameters

\HTMLPurifier_Config $config

Returns

boolean

cleanup()

cleanup(\HTMLPurifier_Config  $config) : boolean

Clears all expired (older version or revision) objects from cache

Parameters

\HTMLPurifier_Config $config

Returns

boolean