abstract |
---|
Abstract class representing Definition cache managers that implements useful common methods and is a factory.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
__construct(string $type)
Parameters
Overriden by |
# | ||||
public
|
generateKey(HTMLPurifier_Config $config): string
Generates a unique identifier for a particular configuration
Generates a unique identifier for a particular configuration Parameters
|
# | ||||
public
|
isOld(string $key, HTMLPurifier_Config $config): bool
Tests whether or not a key is old with respect to the configuration's
version and revision number.
Tests whether or not a key is old with respect to the configuration's version and revision number. Parameters
|
# | ||||
public
|
checkDefType(HTMLPurifier_Definition $def): bool
Checks if a definition's type jives with the cache's type
Checks if a definition's type jives with the cache's type Parameters
Returnstrue if good, false if not |
# | ||||
abstract
public
|
add(HTMLPurifier_Definition $def, HTMLPurifier_Config $config)
Adds a definition object to the cache
Adds a definition object to the cache Implemented by |
# | ||||
abstract
public
|
set(HTMLPurifier_Definition $def, HTMLPurifier_Config $config)
Unconditionally saves a definition object to the cache
Unconditionally saves a definition object to the cache Implemented by |
# | ||||
abstract
public
|
replace(HTMLPurifier_Definition $def, HTMLPurifier_Config $config)
Replace an object in the cache
Replace an object in the cache Implemented by |
# | ||||
abstract
public
|
get(HTMLPurifier_Config $config)
Retrieves a definition object from the cache
Retrieves a definition object from the cache Implemented by |
# | ||||
abstract
public
|
remove(HTMLPurifier_Config $config)
Removes a definition object to the cache
Removes a definition object to the cache Implemented by |
# | ||||
abstract
public
|
flush(HTMLPurifier_Config $config)
Clears all objects from cache
Clears all objects from cache Implemented by |
# | ||||
abstract
public
|
cleanup(HTMLPurifier_Config $config)
Clears all expired (older version or revision) objects from cache
Clears all expired (older version or revision) objects from cache Implemented by |
# |
Properties | |||
---|---|---|---|
public
|
|
$type
|
# |