ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
HTMLPurifier_DefinitionCache_Decorator_Cleanup Class Reference

Definition cache decorator class that cleans up the cache whenever there is a cache miss. More...

+ Inheritance diagram for HTMLPurifier_DefinitionCache_Decorator_Cleanup:
+ Collaboration diagram for HTMLPurifier_DefinitionCache_Decorator_Cleanup:

Public Member Functions

 copy ()
 
 add ($def, $config)
 
 set ($def, $config)
 
 replace ($def, $config)
 
 get ($config)
 
- Public Member Functions inherited from HTMLPurifier_DefinitionCache_Decorator
 __construct ()
 
 decorate (&$cache)
 Lazy decorator function. More...
 
 copy ()
 Cross-compatible clone substitute. More...
 
 add ($def, $config)
 
 set ($def, $config)
 
 replace ($def, $config)
 
 get ($config)
 
 remove ($config)
 
 flush ($config)
 
 cleanup ($config)
 
- Public Member Functions inherited from HTMLPurifier_DefinitionCache
 __construct ($type)
 
 generateKey ($config)
 Generates a unique identifier for a particular configuration. More...
 
 isOld ($key, $config)
 Tests whether or not a key is old with respect to the configuration's version and revision number. More...
 
 checkDefType ($def)
 Checks if a definition's type jives with the cache's type. More...
 
 add ($def, $config)
 Adds a definition object to the cache. More...
 
 set ($def, $config)
 Unconditionally saves a definition object to the cache. More...
 
 replace ($def, $config)
 Replace an object in the cache. More...
 
 get ($config)
 Retrieves a definition object from the cache. More...
 
 remove ($config)
 Removes a definition object to the cache. More...
 
 flush ($config)
 Clears all objects from cache. More...
 
 cleanup ($config)
 Clears all expired (older version or revision) objects from cache. More...
 

Data Fields

 $name = 'Cleanup'
 
- Data Fields inherited from HTMLPurifier_DefinitionCache_Decorator
 $cache
 Cache object we are decorating. More...
 
- Data Fields inherited from HTMLPurifier_DefinitionCache
 $type
 

Detailed Description

Definition cache decorator class that cleans up the cache whenever there is a cache miss.

Definition at line 7 of file Cleanup.php.

Member Function Documentation

◆ add()

HTMLPurifier_DefinitionCache_Decorator_Cleanup::add (   $def,
  $config 
)

Definition at line 17 of file Cleanup.php.

17  {
18  $status = parent::add($def, $config);
19  if (!$status) parent::cleanup($config);
20  return $status;
21  }

◆ copy()

HTMLPurifier_DefinitionCache_Decorator_Cleanup::copy ( )

Definition at line 13 of file Cleanup.php.

13  {
15  }
Definition cache decorator class that cleans up the cache whenever there is a cache miss...
Definition: Cleanup.php:7

◆ get()

HTMLPurifier_DefinitionCache_Decorator_Cleanup::get (   $config)

Definition at line 35 of file Cleanup.php.

References $ret.

35  {
36  $ret = parent::get($config);
37  if (!$ret) parent::cleanup($config);
38  return $ret;
39  }

◆ replace()

HTMLPurifier_DefinitionCache_Decorator_Cleanup::replace (   $def,
  $config 
)

Definition at line 29 of file Cleanup.php.

29  {
30  $status = parent::replace($def, $config);
31  if (!$status) parent::cleanup($config);
32  return $status;
33  }

◆ set()

HTMLPurifier_DefinitionCache_Decorator_Cleanup::set (   $def,
  $config 
)

Definition at line 23 of file Cleanup.php.

23  {
24  $status = parent::set($def, $config);
25  if (!$status) parent::cleanup($config);
26  return $status;
27  }

Field Documentation

◆ $name

HTMLPurifier_DefinitionCache_Decorator_Cleanup::$name = 'Cleanup'

Definition at line 11 of file Cleanup.php.


The documentation for this class was generated from the following file: