ILIAS
release_4-3 Revision
|
Public Member Functions | |
__construct () | |
decorate (&$cache) | |
Lazy decorator function. | |
copy () | |
Cross-compatible clone substitute. | |
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 Member Functions inherited from HTMLPurifier_DefinitionCache | |
__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. |
Data Fields | |
$cache | |
Cache object we are decorating. | |
Data Fields inherited from HTMLPurifier_DefinitionCache | |
$type |
Definition at line 3 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::__construct | ( | ) |
Definition at line 11 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::add | ( | $def, | |
$config | |||
) |
Adds a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, and HTMLPurifier_DefinitionCache_Decorator_Cleanup.
Definition at line 32 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::cleanup | ( | $config | ) |
Clears all expired (older version or revision) objects from cache.
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 56 of file Decorator.php.
Referenced by HTMLPurifier_DefinitionCache_Decorator_Cleanup\add(), HTMLPurifier_DefinitionCache_Decorator_Cleanup\get(), HTMLPurifier_DefinitionCache_Decorator_Cleanup\replace(), and HTMLPurifier_DefinitionCache_Decorator_Cleanup\set().
HTMLPurifier_DefinitionCache_Decorator::copy | ( | ) |
Cross-compatible clone substitute.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, and HTMLPurifier_DefinitionCache_Decorator_Cleanup.
Definition at line 28 of file Decorator.php.
Referenced by decorate().
HTMLPurifier_DefinitionCache_Decorator::decorate | ( | & | $cache | ) |
Lazy decorator function.
$cache | Reference to cache object to decorate |
Definition at line 17 of file Decorator.php.
References $cache, and copy().
HTMLPurifier_DefinitionCache_Decorator::flush | ( | $config | ) |
Clears all objects from cache.
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 52 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::get | ( | $config | ) |
Retrieves a definition object from the cache.
Reimplemented from HTMLPurifier_DefinitionCache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, and HTMLPurifier_DefinitionCache_Decorator_Cleanup.
Definition at line 44 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::remove | ( | $config | ) |
Removes a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache.
Definition at line 48 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::replace | ( | $def, | |
$config | |||
) |
Replace an object in the cache.
Reimplemented from HTMLPurifier_DefinitionCache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, and HTMLPurifier_DefinitionCache_Decorator_Cleanup.
Definition at line 40 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::set | ( | $def, | |
$config | |||
) |
Unconditionally saves a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache.
Reimplemented in HTMLPurifier_DefinitionCache_Decorator_Memory, and HTMLPurifier_DefinitionCache_Decorator_Cleanup.
Definition at line 36 of file Decorator.php.
HTMLPurifier_DefinitionCache_Decorator::$cache |
Cache object we are decorating.
Definition at line 9 of file Decorator.php.
Referenced by decorate().