Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes
Methods | ||||||
---|---|---|---|---|---|---|
public
static
|
build(HTMLPurifier_Config $config, HTMLPurifier_Context $context): HTMLPurifier_IDAccumulator
Builds an IDAccumulator, also initializing the default blacklist
Builds an IDAccumulator, also initializing the default blacklist Parameters
ReturnsFully initialized HTMLPurifier_IDAccumulator |
# | ||||
public
|
add(string $id): bool
Add an ID to the lookup table.
Add an ID to the lookup table. Parameters
Returnsstatus, true if success, false if there's a dupe |
# | ||||
public
|
load($array_of_ids)
Load a list of IDs into the lookup table
Load a list of IDs into the lookup table |
# |
Properties | |||
---|---|---|---|
public
|
|
$ids = []
Lookup table of IDs we've accumulated.
Lookup table of IDs we've accumulated. |
# |