ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
Decorator.php
Go to the documentation of this file.
1
<?
php
2
3
class
HTMLPurifier_DefinitionCache_Decorator
extends
HTMLPurifier_DefinitionCache
4
{
5
10
public
$cache
;
11
16
public
$name
;
17
18
public
function
__construct
()
19
{
20
}
21
27
public
function
decorate
(&
$cache
)
28
{
29
$decorator = $this->
copy
();
30
// reference is necessary for mocks in PHP 4
31
$decorator->cache =&
$cache
;
32
$decorator->type =
$cache
->type;
33
return
$decorator;
34
}
35
40
public
function
copy
()
41
{
42
return
new
HTMLPurifier_DefinitionCache_Decorator
();
43
}
44
50
public
function
add
($def,
$config
)
51
{
52
return
$this->cache->add($def,
$config
);
53
}
54
60
public
function
set
($def,
$config
)
61
{
62
return
$this->cache->set($def,
$config
);
63
}
64
70
public
function
replace
($def,
$config
)
71
{
72
return
$this->cache->replace($def,
$config
);
73
}
74
79
public
function
get
(
$config
)
80
{
81
return
$this->cache->get(
$config
);
82
}
83
88
public
function
remove
(
$config
)
89
{
90
return
$this->cache->remove(
$config
);
91
}
92
97
public
function
flush
(
$config
)
98
{
99
return
$this->cache->flush(
$config
);
100
}
101
106
public
function
cleanup
(
$config
)
107
{
108
return
$this->cache->cleanup(
$config
);
109
}
110
}
111
112
// vim: et sw=4 sts=4
HTMLPurifier_DefinitionCache
Abstract class representing Definition cache managers that implements useful common methods and is a ...
Definition:
DefinitionCache.php:11
HTMLPurifier_DefinitionCache_Decorator\add
add($def, $config)
Definition:
Decorator.php:50
$config
$config
Definition:
flush-definition-cache.php:23
HTMLPurifier_DefinitionCache_Decorator\decorate
decorate(&$cache)
Lazy decorator function.
Definition:
Decorator.php:27
HTMLPurifier_DefinitionCache_Decorator\copy
copy()
Cross-compatible clone substitute.
Definition:
Decorator.php:40
HTMLPurifier_DefinitionCache_Decorator\cleanup
cleanup($config)
Definition:
Decorator.php:106
HTMLPurifier_DefinitionCache_Decorator
Definition:
Decorator.php:3
HTMLPurifier_DefinitionCache_Decorator\flush
flush($config)
Definition:
Decorator.php:97
HTMLPurifier_DefinitionCache_Decorator\__construct
__construct()
Definition:
Decorator.php:18
HTMLPurifier_DefinitionCache_Decorator\$cache
$cache
Cache object we are decorating HTMLPurifier_DefinitionCache.
Definition:
Decorator.php:10
HTMLPurifier_DefinitionCache_Decorator\replace
replace($def, $config)
Definition:
Decorator.php:70
php
HTMLPurifier_DefinitionCache_Decorator\$name
$name
Definition:
Decorator.php:16
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
DefinitionCache
Decorator.php
Generated on Fri Jan 17 2025 19:00:49 for ILIAS by
1.8.13 (using
Doxyfile
)