HTMLPurifier_PropertyList
Generic property list implementation
- Full name:
\HTMLPurifier_PropertyList
Properties
data
Internal data-structure for properties.
parent
Parent plist.
cache
Cache.
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$parent |
\HTMLPurifier_PropertyList | Parent plist |
get
Recursively retrieves the value for a key
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
Throws:
set
Sets the value of a key, for this plist
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$value |
mixed |
has
Returns true if a given key exists
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string |
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:
Parameter | Type | Description |
---|---|---|
$name |
string |
squash
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:
Parameter | Type | Description |
---|---|---|
$force |
bool | If true, ignores the cache and regenerates the array. |
getParent
Returns the parent plist.
setParent
Sets the parent plist.
Parameters:
Parameter | Type | Description |
---|---|---|
$plist |
\HTMLPurifier_PropertyList | Parent plist |
Automatically generated on 2025-03-18