API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_IDAccumulator Class Reference

Public Member Functions

 add ($id)
 
 load ($array_of_ids)
 

Static Public Member Functions

static build ($config, $context)
 

Data Fields

 $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.

Member Function Documentation

◆ add()

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

◆ build()

static 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
Here is the caller graph for this function:

◆ load()

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

Field Documentation

◆ $ids

$ids = array()

Lookup table of IDs we've accumulated.


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