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. | ||||
| __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. | ||||
Public Attributes | ||||
| $type | ||||
Definition at line 11 of file DefinitionCache.php.
| HTMLPurifier_DefinitionCache-p::__construct | ( | $ | type | ) |
| $name | Type of definition objects this instance of the cache will handle. |
Definition at line 20 of file DefinitionCache.php.
| HTMLPurifier_DefinitionCache-p::__construct | ( | $ | type | ) |
| $name | Type of definition objects this instance of the cache will handle. |
Definition at line 2179 of file HTMLPurifier.standalone.php.
| HTMLPurifier_DefinitionCache-p::generateKey | ( | $ | config | ) |
Generates a unique identifier for a particular configuration.
| Instance | of HTMLPurifier_Config |
Definition at line 28 of file DefinitionCache.php.
| HTMLPurifier_DefinitionCache-p::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 $version.
| HTMLPurifier_DefinitionCache-p::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.
| HTMLPurifier_DefinitionCache-p::add | ( | $ | def, | |
| $ | config | |||
| ) | [abstract] |
Adds a definition object to the cache.
| HTMLPurifier_DefinitionCache-p::set | ( | $ | def, | |
| $ | config | |||
| ) | [abstract] |
Unconditionally saves a definition object to the cache.
| HTMLPurifier_DefinitionCache-p::replace | ( | $ | def, | |
| $ | config | |||
| ) | [abstract] |
Replace an object in the cache.
| HTMLPurifier_DefinitionCache-p::get | ( | $ | config | ) | [abstract] |
Retrieves a definition object from the cache.
| HTMLPurifier_DefinitionCache-p::remove | ( | $ | config | ) | [abstract] |
Removes a definition object to the cache.
| HTMLPurifier_DefinitionCache-p::flush | ( | $ | config | ) | [abstract] |
Clears all objects from cache.
| HTMLPurifier_DefinitionCache-p::cleanup | ( | $ | config | ) | [abstract] |
Clears all expired (older version or revision) objects from cache.
| HTMLPurifier_DefinitionCache-p::generateKey | ( | $ | config | ) |
Generates a unique identifier for a particular configuration.
| Instance | of HTMLPurifier_Config |
Definition at line 2187 of file HTMLPurifier.standalone.php.
| HTMLPurifier_DefinitionCache-p::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 2199 of file HTMLPurifier.standalone.php.
References $version.
| HTMLPurifier_DefinitionCache-p::checkDefType | ( | $ | def | ) |
Checks if a definition's type jives with the cache's type.
| $def | Definition object to check |
Definition at line 2219 of file HTMLPurifier.standalone.php.
| HTMLPurifier_DefinitionCache-p::add | ( | $ | def, | |
| $ | config | |||
| ) | [abstract] |
Adds a definition object to the cache.
| HTMLPurifier_DefinitionCache-p::set | ( | $ | def, | |
| $ | config | |||
| ) | [abstract] |
Unconditionally saves a definition object to the cache.
| HTMLPurifier_DefinitionCache-p::replace | ( | $ | def, | |
| $ | config | |||
| ) | [abstract] |
Replace an object in the cache.
| HTMLPurifier_DefinitionCache-p::get | ( | $ | config | ) | [abstract] |
Retrieves a definition object from the cache.
| HTMLPurifier_DefinitionCache-p::remove | ( | $ | config | ) | [abstract] |
Removes a definition object to the cache.
| HTMLPurifier_DefinitionCache-p::flush | ( | $ | config | ) | [abstract] |
Clears all objects from cache.
| HTMLPurifier_DefinitionCache-p::cleanup | ( | $ | config | ) | [abstract] |
Clears all expired (older version or revision) objects from cache.
| HTMLPurifier_DefinitionCache-p::$type |
Definition at line 14 of file DefinitionCache.php.
1.5.3