XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
Decorator.php
Go to the documentation of this file.
1
<?php
2
3
class
HTMLPurifier_DefinitionCache_Decorator
extends
HTMLPurifier_DefinitionCache
4
{
5
9
public
$cache
;
10
11
public
function
__construct
() {}
12
17
public
function
decorate
(&
$cache
) {
18
$decorator = $this->
copy
();
19
// reference is necessary for mocks in PHP 4
20
$decorator->cache =&
$cache
;
21
$decorator->type =
$cache
->type;
22
return
$decorator;
23
}
24
28
public
function
copy
() {
29
return
new
HTMLPurifier_DefinitionCache_Decorator
();
30
}
31
32
public
function
add
($def,
$config
) {
33
return
$this->cache->add($def,
$config
);
34
}
35
36
public
function
set
($def,
$config
) {
37
return
$this->cache->set($def,
$config
);
38
}
39
40
public
function
replace
($def,
$config
) {
41
return
$this->cache->replace($def,
$config
);
42
}
43
44
public
function
get
(
$config
) {
45
return
$this->cache->get(
$config
);
46
}
47
48
public
function
remove
(
$config
) {
49
return
$this->cache->remove(
$config
);
50
}
51
52
public
function
flush
(
$config
) {
53
return
$this->cache->flush(
$config
);
54
}
55
56
public
function
cleanup
(
$config
) {
57
return
$this->cache->cleanup(
$config
);
58
}
59
60
}
61
62
// vim: et sw=4 sts=4
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
library
HTMLPurifier
DefinitionCache
Decorator.php
Generated on Fri May 10 2013 01:04:30 for XOOPS 2.5.6 by
1.8.3.1