Class HTMLPurifier_IDAccumulator
Inheritance | HTMLPurifier_IDAccumulator |
---|
Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$ids | Lookup table of IDs we've accumulated. | HTMLPurifier_IDAccumulator |
Public Methods
Method | Description | Defined By |
---|---|---|
add() | Add an ID to the lookup table. | HTMLPurifier_IDAccumulator |
build() | Builds an IDAccumulator, also initializing the default blacklist | HTMLPurifier_IDAccumulator |
load() | Load a list of IDs into the lookup table | HTMLPurifier_IDAccumulator |
Property Details
Method Details
Add an ID to the lookup table.
public bool add ( $id ) | ||
$id | string | ID to be added. |
return | bool | Status, true if success, false if there's a dupe |
---|
Builds an IDAccumulator, also initializing the default blacklist
public static HTMLPurifier_IDAccumulator build ( $config, $context ) | ||
$config | HTMLPurifier_Config | Instance of HTMLPurifier_Config |
$context | HTMLPurifier_Context | Instance of HTMLPurifier_Context |
return | HTMLPurifier_IDAccumulator | Fully initialized HTMLPurifier_IDAccumulator |
---|
Load a list of IDs into the lookup table
public void load ( $array_of_ids ) | ||
$array_of_ids | Array of IDs to load |