\HTMLPurifier_IDAccumulator

Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes

Summary

Methods
Properties
Constants
build()
add()
load()
$ids
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$ids

$ids

Lookup table of IDs we've accumulated.

Methods

build()

build(\HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : \HTMLPurifier_IDAccumulator

Builds an IDAccumulator, also initializing the default blacklist

Parameters

\HTMLPurifier_Config $config

Instance of HTMLPurifier_Config

\HTMLPurifier_Context $context

Instance of HTMLPurifier_Context

Returns

\HTMLPurifier_IDAccumulator —

Fully initialized HTMLPurifier_IDAccumulator

add()

add(string  $id) : bool

Add an ID to the lookup table.

Parameters

string $id

ID to be added.

Returns

bool —

status, true if success, false if there's a dupe

load()

load( $array_of_ids) : mixed

Load a list of IDs into the lookup table

Parameters

$array_of_ids

Array of IDs to load

Returns

mixed —