Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
HTMLPurifier_IDAccumulator Class Reference

Public Member Functions

 add ($id)
 Add an ID to the lookup table.
 
 load ($array_of_ids)
 Load a list of IDs into the lookup table.
 

Static Public Member Functions

static build ($config, $context)
 Builds an IDAccumulator, also initializing the default blacklist.
 

Public Attributes

 $ids = array()
 Lookup table of IDs we've accumulated.
 

Member Function Documentation

◆ add()

HTMLPurifier_IDAccumulator::add ( $id)

Add an ID to the lookup table.

Parameters
string$idID to be added.
Return values
boolstatus, true if success, false if there's a dupe

◆ 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
Return values
HTMLPurifier_IDAccumulatorFully initialized HTMLPurifier_IDAccumulator

◆ 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

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