Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Array Type of CFPropertyList. More...
Public Member Functions | |
__construct ($value=array()) | |
Create new CFType. | |
add (CFType $value=null) | |
Add CFType to collection. | |
current () | |
Get Iterator's current CFType identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.current.php. | |
del ($key) | |
Remove CFType from collection. | |
get ($key) | |
Get CFType from collection. | |
key () | |
Get Iterator's current key identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.key.php. | |
next () | |
Increment $iteratorPosition to address next {. | |
offsetExists ($offset) | |
Determine if the array's key exists. | |
offsetGet ($offset) | |
Fetch a specific key from the CFArray. | |
offsetSet ($offset, $value) | |
Set a value in the array. | |
offsetUnset ($offset) | |
Unsets a value in the array Note: this dummy does nothing. | |
rewind () | |
Rewind $iteratorPosition to first position (being 0) @externalurl http://php.net/manual/en/iterator.rewind.php. | |
setValue ($value) | |
Set the CFType's value Note: this dummy does nothing. | |
toArray () | |
Get CFType's value. | |
toBinary (CFBinaryPropertyList &$bplist) | |
convert value to binary representation | |
toXML (DOMDocument $doc, $nodeName="") | |
Get XML-Node. | |
valid () | |
Test if $iteratorPosition addresses a valid element of $value @externalurl http://php.net/manual/en/iterator.valid.php. | |
Protected Attributes | |
integer | $iteratorPosition = 0 |
Position of iterator | |
Array Type of CFPropertyList.
CFArray::add | ( | CFType | $value = null | ) |
CFArray::current | ( | ) |
Get Iterator's current CFType identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.current.php.
mixed | current Item @uses $iteratorPosition identify current key |
CFArray::del | ( | $key | ) |
CFArray::get | ( | $key | ) |
CFArray::key | ( | ) |
Get Iterator's current key identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.key.php.
mixed | key of the current Item: mixed @uses $iteratorPosition identify current key |
CFArray::next | ( | ) |
Increment $iteratorPosition to address next {.
void | @uses $iteratorPosition increment by 1 |
CFArray::offsetExists | ( | $offset | ) |
Determine if the array's key exists.
string | $offset | the key to check |
bool | true if the offset exists, false if not @externalurl http://php.net/manual/en/arrayaccess.offsetexists.php @uses $value to check if $key exists |
CFArray::offsetGet | ( | $offset | ) |
Fetch a specific key from the CFArray.
mixed | $offset | the key to check |
mixed | the value associated with the key; null if the key is not found @externalurl http://php.net/manual/en/arrayaccess.offsetget.php @uses get() to get the key's value |
CFArray::offsetSet | ( | $offset, | |
$value ) |
Set a value in the array.
mixed | $offset | the key to set |
mixed | $value | the value to set |
void | @externalurl http://php.net/manual/en/arrayaccess.offsetset.php @uses setValue() to set the key's new value |
CFArray::offsetUnset | ( | $offset | ) |
Unsets a value in the array Note: this dummy does nothing.
mixed | $offset | the key to set |
void | @externalurl http://php.net/manual/en/arrayaccess.offsetunset.php |
CFArray::rewind | ( | ) |
Rewind $iteratorPosition to first position (being 0) @externalurl http://php.net/manual/en/iterator.rewind.php.
void | @uses $iteratorPosition set to 0 |
CFArray::setValue | ( | $value | ) |
Set the CFType's value Note: this dummy does nothing.
void |
CFArray::toArray | ( | ) |
CFArray::toBinary | ( | CFBinaryPropertyList & | $bplist | ) |
convert value to binary representation
CFBinaryPropertyList | The binary property list object |
The | offset in the object table |
CFArray::toXML | ( | DOMDocument | $doc, |
$nodeName = "" ) |
Get XML-Node.
DOMDocument | $doc | DOMDocument to create DOMNode in |
string | $nodeName | For compatibility reasons; just ignore it |
DOMNode | <array>-Element |
CFArray::valid | ( | ) |
Test if $iteratorPosition addresses a valid element of $value @externalurl http://php.net/manual/en/iterator.valid.php.
bool | true if current position is valid, false else @uses $iteratorPosition test if within $iteratorKeys @uses $iteratorPosition test if within $value |