Class HTMLPurifier_PropertyList
Generic property list implementation
Methods summary
public
|
|
public
|
#
get( string $name )
Recursively retrieves the value for a key
Recursively retrieves the value for a key
Parameters
Throws
|
public
|
#
set( string $name, mixed $value )
Sets the value of a key, for this plist
Sets the value of a key, for this plist
Parameters
- $name
string $name
- $value
mixed $value
|
public
boolean
|
#
has( string $name )
Returns true if a given key exists
Returns true if a given key exists
Parameters
Returns
boolean
|
public
|
#
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.
Resets a value to the value of it's parent, usually the default. If no value
is specified, the entire plist is reset.
Parameters
|
public
array
|
#
squash( boolean $force = false )
Squashes this property list and all of its property lists into a single
array, and returns the array. This value is cached by default.
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
- $force
boolean $force If true, ignores the cache and regenerates the array.
Returns
array
|
public
HTMLPurifier_PropertyList
|
#
getParent( )
Returns the parent plist.
Returns the parent plist.
Returns
|
public
|
|
Properties summary
protected
array
|
$data
|
array() |
#
Internal data-structure for properties.
Internal data-structure for properties.
Type
array
|
protected
mixed
|
$parent
|
|
#
Parent plist.
Type
HTMLPurifier_PropertyList
|
protected
mixed
|
$cache
|
|
|