Cheetah
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
HTMLPurifier_IDAccumulator Class Reference

Public Member Functions

 add ($id)
 
 load ($array_of_ids)
 

Static Public Member Functions

static build ($config, $context)
 

Public Attributes

 $ids = array()
 

Detailed Description

Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes

Note
In Slashdot-speak, dupe means duplicate.
The default constructor does not accept $config or $context objects: use must use the static build() factory method to perform initialization.

Definition at line 6711 of file HTMLPurifier.standalone.php.

Member Function Documentation

◆ add()

HTMLPurifier_IDAccumulator::add (   $id)

Add an ID to the lookup table.

Parameters
string$idID to be added.
Returns
bool status, true if success, false if there's a dupe

Definition at line 6738 of file HTMLPurifier.standalone.php.

◆ build()

static HTMLPurifier_IDAccumulator::build (   $config,
  $context 
)
static

Builds an IDAccumulator, also initializing the default blacklist

Parameters
HTMLPurifier_Config$configInstance of HTMLPurifier_Config
HTMLPurifier_Context$contextInstance of HTMLPurifier_Context
Returns
HTMLPurifier_IDAccumulator Fully initialized HTMLPurifier_IDAccumulator

Definition at line 6726 of file HTMLPurifier.standalone.php.

◆ load()

HTMLPurifier_IDAccumulator::load (   $array_of_ids)

Load a list of IDs into the lookup table

Parameters
$array_of_idsArray of IDs to load
Note
This function doesn't care about duplicates

Definition at line 6751 of file HTMLPurifier.standalone.php.

Member Data Documentation

◆ $ids

HTMLPurifier_IDAccumulator::$ids = array()

Lookup table of IDs we've accumulated.

Definition at line 6718 of file HTMLPurifier.standalone.php.


The documentation for this class was generated from the following file: