24 public static function build($config, $context) {
26 $id_accumulator->load($config->get(
'Attr.IDBlacklist'));
27 return $id_accumulator;
35 public function add($id) {
36 if (isset($this->ids[$id]))
return false;
37 return $this->ids[$id] =
true;
45 public function load($array_of_ids) {
46 foreach ($array_of_ids as $id) {
47 $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.