27 $id_accumulator->load(
$config->get(
'Attr.IDBlacklist'));
28 return $id_accumulator;
36 public function add($id)
38 if (isset($this->ids[$id])) {
41 return $this->ids[$id] =
true;
49 public function load($array_of_ids)
51 foreach ($array_of_ids as $id) {
52 $this->ids[$id] =
true;
$ids
Lookup table of IDs we've accumulated.
static build($config, $context)
Builds an IDAccumulator, also initializing the default blacklist.
Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes.
add($id)
Add an ID to the lookup table.
load($array_of_ids)
Load a list of IDs into the lookup table.
Create styles array
The data for the language used.