diff options
author | Andrew Dolgov <[email protected]> | 2012-06-01 00:07:59 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-06-01 00:07:59 +0400 |
commit | c21a462d52bd32737c32c29b060da03b38f1c2e6 (patch) | |
tree | 83b1b0a5e5451b6c4b6556886e6b590da24ca12f /lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php | |
parent | 65dd90f2bae0f10aa8c4404df622d287e48b2544 (diff) |
remove htmlpurifier
Diffstat (limited to 'lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php')
-rw-r--r-- | lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php b/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php deleted file mode 100644 index d4cc35c4b..000000000 --- a/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - -/** - * Definition cache decorator class that cleans up the cache - * whenever there is a cache miss. - */ -class HTMLPurifier_DefinitionCache_Decorator_Cleanup extends - HTMLPurifier_DefinitionCache_Decorator -{ - - public $name = 'Cleanup'; - - public function copy() { - return new HTMLPurifier_DefinitionCache_Decorator_Cleanup(); - } - - public function add($def, $config) { - $status = parent::add($def, $config); - if (!$status) parent::cleanup($config); - return $status; - } - - public function set($def, $config) { - $status = parent::set($def, $config); - if (!$status) parent::cleanup($config); - return $status; - } - - public function replace($def, $config) { - $status = parent::replace($def, $config); - if (!$status) parent::cleanup($config); - return $status; - } - - public function get($config) { - $ret = parent::get($config); - if (!$ret) parent::cleanup($config); - return $ret; - } - -} - -// vim: et sw=4 sts=4 |