Class CFArray

Description

Implements interfaces:

  • Iterator (internal interface)
  • ArrayAccess (internal interface)

Array Type of CFPropertyList

Located in /CFType.php (line 343)

CFType
   |
   --CFArray
Variable Summary
Method Summary
CFArray __construct ([array $value = array()])
void add ([CFType $value = null])
CFType del (integer $key)
CFType get (integer $key)
string key ()
void next ()
bool offsetExists (string $key)
mixed offsetGet (string $key)
void offsetSet (string $key, string $value)
void offsetUnset (string $key)
void rewind ()
void setValue ( $value)
array toArray ()
The toBinary (CFBinaryPropertyList &$bplist)
DOMNode toXML ( $doc, [string $nodeName = ""])
boolean valid ()
Variables
integer $iteratorPosition = 0 (line 348)

Position of iterator http://php.net/manual/en/class.iterator.php

Inherited Variables

Inherited from CFType

CFType::$value
Methods
Constructor __construct (line 355)

Create new CFType.

  • access: public
CFArray __construct ([array $value = array()])
  • array $value: Value of CFType

Redefinition of:
CFType::__construct()
Create new CFType.
add (line 373)

Add CFType to collection.

void add ([CFType $value = null])
  • CFType $value: CFType to add to collection, defaults to null which results in an empty CFString
current (line 461)

Get Iterator's current CFType identified by $iteratorPosition

CFType current ()

Implementation of:
Iterator::current
del (line 398)

Remove CFType from collection.

  • return: removed CFType, null else
  • access: public
  • uses: CFType::$value - for removing CFType of $key
CFType del (integer $key)
  • integer $key: Key of CFType to removes from collection
get (line 387)

Get CFType from collection.

CFType get (integer $key)
  • integer $key: Key of CFType to retrieve from collection
key (line 471)

Get Iterator's current key identified by $iteratorPosition

string key ()

Implementation of:
Iterator::key
next (line 481)

Increment $iteratorPosition to address next {@see CFType}

void next ()

Implementation of:
Iterator::next
offsetExists (line 508)

Determine if the array's key exists

bool offsetExists (string $key)
  • string $key: the key to check

Implementation of:
ArrayAccess::offsetExists
offsetGet (line 520)

Fetch a specific key from the CFArray

mixed offsetGet (string $key)
  • string $key: the key to check

Implementation of:
ArrayAccess::offsetGet
offsetSet (line 533)

Set a value in the array

void offsetSet (string $key, string $value)
  • string $key: the key to set
  • string $value: the value to set

Implementation of:
ArrayAccess::offsetSet
offsetUnset (line 545)

Unsets a value in the array

Note: this dummy does nothing

void offsetUnset (string $key)
  • string $key: the key to set

Implementation of:
ArrayAccess::offsetUnset
rewind (line 451)

Rewind $iteratorPosition to first position (being 0)

void rewind ()

Implementation of:
Iterator::rewind
setValue (line 364)

Set the CFType's value

Note: this dummy does nothing

void setValue ( $value)
  • $value

Redefinition of:
CFType::setValue()
Set the CFType's value
toArray (line 434)

Get CFType's value.

  • return: primitive value
  • access: public
  • uses: CFType::$value - for retrieving primitive of CFType
array toArray ()

Redefinition of:
CFType::toArray()
Get CFType's value.
toBinary (line 425)

convert value to binary representation

  • return: offset in the object table
  • access: public
The toBinary (CFBinaryPropertyList &$bplist)

Redefinition of:
CFType::toBinary()
convert value to binary representation
toXML (line 413)

Get XML-Node.

  • return: <array>-Element
  • access: public
DOMNode toXML ( $doc, [string $nodeName = ""])
  • DOMDocument $doc: DOMDocument to create DOMNode in
  • string $nodeName: For compatibility reasons; just ignore it

Redefinition of:
CFType::toXML()
Get XML-Node.
valid (line 492)

Test if $iteratorPosition addresses a valid element of $value

boolean valid ()

Implementation of:
Iterator::valid

Inherited Methods

Inherited From CFType

CFType::__construct()
CFType::getValue()
CFType::setValue()
CFType::toArray()
CFType::toBinary()
CFType::toXML()

Documentation generated on Fri, 01 Jan 2010 21:33:33 +0100 by phpDocumentor 1.4.1