HumHub Documentation (unofficial)

HTMLPurifier_IDAccumulator
in package

Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes

Tags
note

In Slashdot-speak, dupe means duplicate.

note

The default constructor does not accept $config or $context objects: use must use the static build() factory method to perform initialization.

Table of Contents

Properties

$ids  : mixed
Lookup table of IDs we've accumulated.

Methods

add()  : bool
Add an ID to the lookup table.
build()  : HTMLPurifier_IDAccumulator
Builds an IDAccumulator, also initializing the default blacklist
load()  : mixed
Load a list of IDs into the lookup table

Properties

$ids

Lookup table of IDs we've accumulated.

public mixed $ids = array()
Tags
public

Methods

add()

Add an ID to the lookup table.

public add(string $id) : bool
Parameters
$id : string

ID to be added.

Return values
bool

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

load()

Load a list of IDs into the lookup table

public load(mixed $array_of_ids) : mixed
Parameters
$array_of_ids : mixed

Array of IDs to load

Tags
note

This function doesn't care about duplicates


        
On this page

Search results