Cheetah
|
Public Member Functions | |
__construct ($type) | |
generateKey ($config) | |
isOld ($key, $config) | |
checkDefType ($def) | |
add ($def, $config) | |
set ($def, $config) | |
replace ($def, $config) | |
get ($config) | |
remove ($config) | |
flush ($config) | |
cleanup ($config) | |
Public Attributes | |
$type | |
Abstract class representing Definition cache managers that implements useful common methods and is a factory.
Definition at line 3165 of file HTMLPurifier.standalone.php.
HTMLPurifier_DefinitionCache::__construct | ( | $type | ) |
string | $type | Type of definition objects this instance of the cache will handle. |
Definition at line 3176 of file HTMLPurifier.standalone.php.
|
abstract |
Adds a definition object to the cache
HTMLPurifier_Definition | $def | |
HTMLPurifier_Config | $config |
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Serializer, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Decorator.
HTMLPurifier_DefinitionCache::checkDefType | ( | $def | ) |
Checks if a definition's type jives with the cache's type
HTMLPurifier_Definition | $def | Definition object to check |
Definition at line 3225 of file HTMLPurifier.standalone.php.
|
abstract |
Clears all expired (older version or revision) objects from cache
HTMLPurifier_Config | $config |
Reimplemented in HTMLPurifier_DefinitionCache_Serializer, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Decorator.
|
abstract |
Clears all objects from cache
HTMLPurifier_Config | $config |
Reimplemented in HTMLPurifier_DefinitionCache_Serializer, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Decorator.
HTMLPurifier_DefinitionCache::generateKey | ( | $config | ) |
Generates a unique identifier for a particular configuration
HTMLPurifier_Config | $config | Instance of HTMLPurifier_Config |
Definition at line 3186 of file HTMLPurifier.standalone.php.
|
abstract |
Retrieves a definition object from the cache
HTMLPurifier_Config | $config |
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Serializer, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Decorator.
HTMLPurifier_DefinitionCache::isOld | ( | $key, | |
$config | |||
) |
Tests whether or not a key is old with respect to the configuration's version and revision number.
string | $key | Key to test |
HTMLPurifier_Config | $config | Instance of HTMLPurifier_Config to test against |
Definition at line 3200 of file HTMLPurifier.standalone.php.
|
abstract |
Removes a definition object to the cache
HTMLPurifier_Config | $config |
Reimplemented in HTMLPurifier_DefinitionCache_Serializer, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Decorator.
|
abstract |
Replace an object in the cache
HTMLPurifier_Definition | $def | |
HTMLPurifier_Config | $config |
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Serializer, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Decorator.
|
abstract |
Unconditionally saves a definition object to the cache
HTMLPurifier_Definition | $def | |
HTMLPurifier_Config | $config |
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Serializer, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Decorator.
HTMLPurifier_DefinitionCache::$type |
@type string
Definition at line 3170 of file HTMLPurifier.standalone.php.