ILIAS
Release_4_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
IDAccumulator.php
Go to the documentation of this file.
1
<?php
2
9
class
HTMLPurifier_IDAccumulator
10
{
11
16
public
$ids
= array();
17
24
public
static
function
build
(
$config
, $context) {
25
$id_accumulator =
new
HTMLPurifier_IDAccumulator
();
26
$id_accumulator->load(
$config
->get(
'Attr.IDBlacklist'
));
27
return
$id_accumulator;
28
}
29
35
public
function
add
($id) {
36
if
(isset($this->ids[$id]))
return
false
;
37
return
$this->ids[$id] =
true
;
38
}
39
45
public
function
load
($array_of_ids) {
46
foreach
($array_of_ids as $id) {
47
$this->ids[$id] =
true
;
48
}
49
}
50
51
}
52
53
// vim: et sw=4 sts=4
Services
Html
HtmlPurifier
library
HTMLPurifier
IDAccumulator.php
Generated on Wed Apr 27 2016 19:01:42 for ILIAS by
1.8.1.2 (using
Doxyfile
)