[1.7.0] Add DefinitionCache decorators, implement Memory decorator
[htmlpurifier/rdancer.git] / library / HTMLPurifier / DefinitionCache / Null.php
blobdd505cc3707766e9492f3f79ef7b035129f42589
1 <?php
3 require_once 'HTMLPurifier/DefinitionCache.php';
5 /**
6 * Null cache object to use when no caching is on.
7 */
8 class HTMLPurifier_DefinitionCache_Null extends HTMLPurifier_DefinitionCache
11 function add($def, $config) {
12 return false;
15 function set($def, $config) {
16 return false;
19 function replace($def, $config) {
20 return false;
23 function get($config) {
24 return false;
27 function flush() {
28 return false;
31 function cleanup($config) {
32 return false;