|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($parent=null) | |
| get ($name) | |
| set ($name, $value) | |
| has ($name) | |
| reset ($name=null) | |
| squash ($force=false) | |
| getParent () | |
| setParent ($plist) | |
Protected Attributes | |
| $data = array() | |
| $parent | |
| $cache | |
Generic property list implementation
Definition at line 6 of file PropertyList.php.
| __construct | ( | $ | parent = null | ) |
Definition at line 20 of file PropertyList.php.
| get | ( | $ | name | ) |
Recursively retrieves the value for a key
Definition at line 27 of file PropertyList.php.

| getParent | ( | ) |
Returns the parent plist.
Definition at line 74 of file PropertyList.php.
| has | ( | $ | name | ) |
Returns true if a given key exists
Definition at line 44 of file PropertyList.php.

| reset | ( | $ | 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.
Definition at line 52 of file PropertyList.php.
| set | ( | $ | name, |
| $ | value | ||
| ) |
Sets the value of a key, for this plist
Definition at line 37 of file PropertyList.php.
| setParent | ( | $ | plist | ) |
Sets the parent plist.
Definition at line 81 of file PropertyList.php.
| squash | ( | $ | 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.
| $force | If true, ignores the cache and regenerates the array. |
Definition at line 62 of file PropertyList.php.
$cache [protected] |
Definition at line 18 of file PropertyList.php.
Internal data-structure for properties
Definition at line 11 of file PropertyList.php.
$parent [protected] |
Parent plist
Definition at line 16 of file PropertyList.php.