Generic property list implementation
Methods | ||||
---|---|---|---|---|
public
|
__construct(HTMLPurifier_PropertyList $parent = null)
Parameters
|
# | ||
public
|
get(string $name)
Recursively retrieves the value for a key
|
# | ||
public
|
set(string $name, mixed $value)
Sets the value of a key, for this plist
Sets the value of a key, for this plist |
# | ||
public
|
has(string $name): bool
Returns true if a given key exists
Returns true if a given key exists |
# | ||
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. |
# | ||
public
|
squash(bool $force = false): array
Squashes this property list and all of its property lists into a single
array, and returns the array. This value is…
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
|
# | ||
public
|
getParent(): HTMLPurifier_PropertyList
Returns the parent plist.
Returns the parent plist. |
# | ||
public
|
setParent(HTMLPurifier_PropertyList $plist)
Sets the parent plist.
Sets the parent plist. Parameters
|
# |
Properties | |||
---|---|---|---|
protected
|
|
$data = []
Internal data-structure for properties.
Internal data-structure for properties. |
# |
protected
|
|
$parent
Parent plist.
Parent plist. |
# |
protected
|
|
$cache
Cache.
Cache. |
# |