Class HTMLPurifier_DefinitionCache_Decorator
Abstract class representing Definition cache managers that implements useful
common methods and is a factory.
-
HTMLPurifier_DefinitionCache
-
HTMLPurifier_DefinitionCache_Decorator
Methods summary
public
|
|
public
|
#
decorate( $cache & $cache )
Lazy decorator function
Parameters
- $cache
$cache Reference to cache object to decorate
|
public
|
#
copy( )
Cross-compatible clone substitute
Cross-compatible clone substitute
|
public
|
#
add( $def, $config )
Adds a definition object to the cache
Adds a definition object to the cache
|
public
|
#
set( $def, $config )
Unconditionally saves a definition object to the cache
Unconditionally saves a definition object to the cache
|
public
|
#
replace( $def, $config )
Replace an object in the cache
Replace an object in the cache
|
public
|
#
get( $config )
Retrieves a definition object from the cache
Retrieves a definition object from the cache
|
public
|
#
remove( $config )
Removes a definition object to the cache
Removes a definition object to the cache
|
public
|
#
flush( $config )
Clears all objects from cache
Clears all objects from cache
|
public
|
#
cleanup( $config )
Clears all expired (older version or revision) objects from cache
Clears all expired (older version or revision) objects from cache
Note
Be carefuly implementing this method as flush. Flush must not interfere with
other Definition types, and cleanup() should not be repeatedly called by
userland code.
|
Properties summary
public
|
$cache
|
|
#
Cache object we are decorating
Cache object we are decorating
|