\HTMLPurifier_PropertyList

Generic property list implementation

Summary

Methods
Properties
Constants
__construct()
get()
set()
has()
reset()
squash()
getParent()
setParent()
No public properties found
No constants found
No protected methods found
$data
$parent
$cache
N/A
No private methods found
No private properties found
N/A

Properties

$data

$data : 

Internal data-structure for properties.

Type

$parent

$parent : 

Parent plist.

Type

$cache

$cache : 

Cache.

Type

Methods

get()

get(string  $name) 

Recursively retrieves the value for a key

Parameters

string $name

Throws

\HTMLPurifier_Exception

set()

set(string  $name, mixed  $value) 

Sets the value of a key, for this plist

Parameters

string $name
mixed $value

has()

has(string  $name) : boolean

Returns true if a given key exists

Parameters

string $name

Returns

boolean

reset()

reset(string  $name = null) 

Resets a value to the value of it's parent, usually the default. If no value is specified, the entire plist is reset.

Parameters

string $name

squash()

squash(boolean  $force = false) : array

Squashes this property list and all of its property lists into a single array, and returns the array. This value is cached by default.

Parameters

boolean $force

If true, ignores the cache and regenerates the array.

Returns

array

setParent()

setParent(\HTMLPurifier_PropertyList  $plist) 

Sets the parent plist.

Parameters

\HTMLPurifier_PropertyList $plist

Parent plist