| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Abstract class representing Definition cache managers that implements useful common methods and is a factory. More...
 Inheritance diagram for HTMLPurifier_DefinitionCache:
 Inheritance diagram for HTMLPurifier_DefinitionCache: Collaboration diagram for HTMLPurifier_DefinitionCache:
 Collaboration diagram for HTMLPurifier_DefinitionCache:| Public Member Functions | |
| __construct ($type) | |
| generateKey ($config) | |
| Generates a unique identifier for a particular configuration. | |
| isOld ($key, $config) | |
| Tests whether or not a key is old with respect to the configuration's version and revision number. | |
| checkDefType ($def) | |
| Checks if a definition's type jives with the cache's type. | |
| add ($def, $config) | |
| Adds a definition object to the cache. | |
| set ($def, $config) | |
| Unconditionally saves a definition object to the cache. | |
| replace ($def, $config) | |
| Replace an object in the cache. | |
| get ($config) | |
| Retrieves a definition object from the cache. | |
| remove ($config) | |
| Removes a definition object to the cache. | |
| flush ($config) | |
| Clears all objects from cache. | |
| cleanup ($config) | |
| Clears all expired (older version or revision) objects from cache. | |
| Data Fields | |
| $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.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator, HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Null, and HTMLPurifier_DefinitionCache_Serializer.
| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | abstract | 
Clears all expired (older version or revision) objects from cache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator, HTMLPurifier_DefinitionCache_Serializer, and HTMLPurifier_DefinitionCache_Null.
| 
 | abstract | 
Clears all objects from cache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator, HTMLPurifier_DefinitionCache_Serializer, and HTMLPurifier_DefinitionCache_Null.
| HTMLPurifier_DefinitionCache::generateKey | ( | $config | ) | 
Generates a unique identifier for a particular configuration.
| Instance | of HTMLPurifier_Config | 
Definition at line 28 of file DefinitionCache.php.
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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | abstract | 
Retrieves a definition object from the cache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator, HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Serializer, and HTMLPurifier_DefinitionCache_Null.
| 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.
Referenced by HTMLPurifier_DefinitionCache_Serializer\cleanup().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | abstract | 
Removes a definition object to the cache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator, HTMLPurifier_DefinitionCache_Serializer, and HTMLPurifier_DefinitionCache_Null.
| 
 | abstract | 
Replace an object in the cache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator, HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Serializer, and HTMLPurifier_DefinitionCache_Null.
| 
 | abstract | 
Unconditionally saves a definition object to the cache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator, HTMLPurifier_DefinitionCache_Decorator_Memory, HTMLPurifier_DefinitionCache_Decorator_Cleanup, HTMLPurifier_DefinitionCache_Serializer, and HTMLPurifier_DefinitionCache_Null.
| HTMLPurifier_DefinitionCache::$type | 
Definition at line 14 of file DefinitionCache.php.
Referenced by __construct(), and HTMLPurifier_DefinitionCache_Serializer\generateDirectoryPath().