PHP Class HTMLPurifier_IDAccumulator, yii

ファイルを表示 Open project: yiisoft/yii Class Usage Examples

Public Properties

Property Type Description
$ids Lookup table of IDs we've accumulated.

Public Methods

Method Description
add ( string $id ) : boolean Add an ID to the lookup table.
build ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_IDAccumulator Builds an IDAccumulator, also initializing the default blacklist
load ( $array_of_ids ) Load a list of IDs into the lookup table

Method Details

add() public method

Add an ID to the lookup table.
public add ( string $id ) : boolean
$id string ID to be added.
return boolean status, true if success, false if there's a dupe

build() public static method

Builds an IDAccumulator, also initializing the default blacklist
public static build ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_IDAccumulator
$config HTMLPurifier_Config Instance of HTMLPurifier_Config
$context HTMLPurifier_Context Instance of HTMLPurifier_Context
return HTMLPurifier_IDAccumulator Fully initialized HTMLPurifier_IDAccumulator

load() public method

Load a list of IDs into the lookup table
public load ( $array_of_ids )
$array_of_ids Array of IDs to load

Property Details

$ids public_oe property

Lookup table of IDs we've accumulated.
public $ids