Source for file Cleanup.php

Documentation is available at Cleanup.php

  1. <?php
  2.  
  3. /**
  4.  * Definition cache decorator class that cleans up the cache
  5.  * whenever there is a cache miss.
  6.  */
  7. {
  8.     
  9.     public $name = 'Cleanup';
  10.     
  11.     public function copy({
  12.         return new HTMLPurifier_DefinitionCache_Decorator_Cleanup();
  13.     }
  14.     
  15.     public function add($def$config{
  16.         $status parent::add($def$config);
  17.         if (!$statusparent::cleanup($config);
  18.         return $status;
  19.     }
  20.     
  21.     public function set($def$config{
  22.         $status parent::set($def$config);
  23.         if (!$statusparent::cleanup($config);
  24.         return $status;
  25.     }
  26.     
  27.     public function replace($def$config{
  28.         $status parent::replace($def$config);
  29.         if (!$statusparent::cleanup($config);
  30.         return $status;
  31.     }
  32.     
  33.     public function get($config{
  34.         $ret parent::get($config);
  35.         if (!$retparent::cleanup($config);
  36.         return $ret;
  37.     }
  38.     
  39. }

Documentation generated on Thu, 19 Jun 2008 18:48:55 -0400 by phpDocumentor 1.4.2