XOOPS 2.5.6
Final
|
Public Member Functions | |
__construct ($type) | |
add ($def, $config) | |
checkDefType ($def) | |
cleanup ($config) | |
flush ($config) | |
generateKey ($config) | |
get ($config) | |
isOld ($key, $config) | |
remove ($config) | |
replace ($def, $config) | |
set ($def, $config) | |
Public Attributes | |
$type | |
Abstract class representing Definition cache managers that implements useful common methods and is a factory.
Create a separate maintenance file advanced users can use to cache their custom HTMLDefinition, which can be loaded via a configuration directive
Implement memcached
Definition at line 11 of file DefinitionCache.php.
HTMLPurifier_DefinitionCache::__construct | ( | $type | ) |
$name | Type of definition objects this instance of the cache will handle. |
Definition at line 20 of file DefinitionCache.php.
References $type.
|
abstract |
Adds a definition object to the cache
HTMLPurifier_DefinitionCache::checkDefType | ( | $def | ) |
Checks if a definition's type jives with the cache's type
$def | Definition object to check |
Definition at line 60 of file DefinitionCache.php.
Referenced by HTMLPurifier_DefinitionCache_Serializer\add(), HTMLPurifier_DefinitionCache_Serializer\replace(), and HTMLPurifier_DefinitionCache_Serializer\set().
|
abstract |
Clears all expired (older version or revision) objects from cache
|
abstract |
Clears all objects from cache
HTMLPurifier_DefinitionCache::generateKey | ( | $config | ) |
Generates a unique identifier for a particular configuration
Instance | of HTMLPurifier_Config |
Definition at line 28 of file DefinitionCache.php.
References $config.
Referenced by HTMLPurifier_DefinitionCache_Decorator_Memory\add(), HTMLPurifier_DefinitionCache_Serializer\generateFilePath(), HTMLPurifier_DefinitionCache_Decorator_Memory\get(), HTMLPurifier_DefinitionCache_Decorator_Memory\replace(), and HTMLPurifier_DefinitionCache_Decorator_Memory\set().
|
abstract |
Retrieves a definition object from the cache
HTMLPurifier_DefinitionCache::isOld | ( | $key, | |
$config | |||
) |
Tests whether or not a key is old with respect to the configuration's version and revision number.
$key | Key to test |
$config | Instance of HTMLPurifier_Config to test against |
Definition at line 40 of file DefinitionCache.php.
References $config.
Referenced by HTMLPurifier_DefinitionCache_Serializer\cleanup().
|
abstract |
Removes a definition object to the cache
|
abstract |
Replace an object in the cache
|
abstract |
Unconditionally saves a definition object to the cache
HTMLPurifier_DefinitionCache::$type |
Definition at line 14 of file DefinitionCache.php.
Referenced by __construct(), and HTMLPurifier_DefinitionCache_Serializer\generateDirectoryPath().