ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
Cleanup.php
Go to the documentation of this file.
1
<?
php
2
7
class
HTMLPurifier_DefinitionCache_Decorator_Cleanup
extends
HTMLPurifier_DefinitionCache_Decorator
8
{
12
public
$name
=
'Cleanup'
;
13
17
public
function
copy
()
18
{
19
return
new
HTMLPurifier_DefinitionCache_Decorator_Cleanup
();
20
}
21
27
public
function
add
($def,
$config
)
28
{
29
$status =
parent::add
($def,
$config
);
30
if
(!$status) {
31
parent::cleanup(
$config
);
32
}
33
return
$status;
34
}
35
41
public
function
set
($def,
$config
)
42
{
43
$status = parent::set($def,
$config
);
44
if
(!$status) {
45
parent::cleanup(
$config
);
46
}
47
return
$status;
48
}
49
55
public
function
replace
($def,
$config
)
56
{
57
$status = parent::replace($def,
$config
);
58
if
(!$status) {
59
parent::cleanup(
$config
);
60
}
61
return
$status;
62
}
63
68
public
function
get
(
$config
)
69
{
70
$ret
= parent::get(
$config
);
71
if
(!
$ret
) {
72
parent::cleanup(
$config
);
73
}
74
return
$ret
;
75
}
76
}
77
78
// vim: et sw=4 sts=4
HTMLPurifier_DefinitionCache_Decorator_Cleanup\copy
copy()
Definition:
Cleanup.php:17
$config
$config
Definition:
flush-definition-cache.php:23
HTMLPurifier_DefinitionCache_Decorator_Cleanup
Definition cache decorator class that cleans up the cache whenever there is a cache miss...
Definition:
Cleanup.php:7
HTMLPurifier_DefinitionCache_Decorator
Definition:
Decorator.php:3
HTMLPurifier_DefinitionCache_Decorator_Cleanup\replace
replace($def, $config)
Definition:
Cleanup.php:55
add
add()
Definition:
add.php:2
HTMLPurifier_DefinitionCache_Decorator_Cleanup\$name
$name
string
Definition:
Cleanup.php:12
HTMLPurifier_DefinitionCache_Decorator_Cleanup\add
add($def, $config)
Definition:
Cleanup.php:27
$ret
$ret
Definition:
parser.php:6
php
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
DefinitionCache
Decorator
Cleanup.php
Generated on Fri Jan 17 2025 19:00:49 for ILIAS by
1.8.13 (using
Doxyfile
)