|
| __construct ($type) |
|
| add ($def, $config) |
| Adds a definition object to the cache.
|
|
| checkDefType ($def) |
| Checks if a definition's type jives with the cache's type.
|
|
| cleanup ($config) |
| Clears all expired (older version or revision) objects from cache.
|
|
| flush ($config) |
| Clears all objects from cache.
|
|
| generateKey ($config) |
| Generates a unique identifier for a particular configuration.
|
|
| get ($config) |
| Retrieves a definition object from the cache.
|
|
| isOld ($key, $config) |
| Tests whether or not a key is old with respect to the configuration's version and revision number.
|
|
| remove ($config) |
| Removes a definition object to the cache.
|
|
| replace ($def, $config) |
| Replace an object in the cache.
|
|
| set ($def, $config) |
| Unconditionally saves a definition object to the cache.
|
|
◆ __construct()
HTMLPurifier_DefinitionCache::__construct |
( |
| $type | ) |
|
- Parameters
-
string | $type | Type of definition objects this instance of the cache will handle. |
◆ add()
HTMLPurifier_DefinitionCache::add |
( |
| $def, |
|
|
| $config ) |
|
abstract |
◆ checkDefType()
HTMLPurifier_DefinitionCache::checkDefType |
( |
| $def | ) |
|
Checks if a definition's type jives with the cache's type.
- Note
- Throws an error on failure
- Parameters
-
- Return values
-
bool | true if good, false if not |
◆ cleanup()
HTMLPurifier_DefinitionCache::cleanup |
( |
| $config | ) |
|
|
abstract |
◆ flush()
HTMLPurifier_DefinitionCache::flush |
( |
| $config | ) |
|
|
abstract |
◆ generateKey()
HTMLPurifier_DefinitionCache::generateKey |
( |
| $config | ) |
|
Generates a unique identifier for a particular configuration.
- Parameters
-
- Return values
-
◆ get()
HTMLPurifier_DefinitionCache::get |
( |
| $config | ) |
|
|
abstract |
◆ isOld()
HTMLPurifier_DefinitionCache::isOld |
( |
| $key, |
|
|
| $config ) |
Tests whether or not a key is old with respect to the configuration's version and revision number.
- Parameters
-
- Return values
-
◆ remove()
HTMLPurifier_DefinitionCache::remove |
( |
| $config | ) |
|
|
abstract |
◆ replace()
HTMLPurifier_DefinitionCache::replace |
( |
| $def, |
|
|
| $config ) |
|
abstract |
◆ set()
HTMLPurifier_DefinitionCache::set |
( |
| $def, |
|
|
| $config ) |
|
abstract |
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/DefinitionCache.php