\Horde_Rdo_Iterator

Iterator for Horde_Rdo_Base objects that allows relationships and decorated objects to be handled gracefully.

Summary

Methods
Properties
Constants
__construct()
rewind()
current()
key()
next()
valid()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_rdo
$_keys
$_index
$_valid
N/A

Properties

$_keys

$_keys : 

List of keys that we'll iterator over. This is the combined list of the fields, lazyFields, relationships, and lazyRelationships properties from the objects Horde_Rdo_Mapper.

Type

$_index

$_index : mixed

Current index

Type

mixed

$_valid

$_valid : boolean

Are we inside the array bounds?

Type

boolean

Methods

__construct()

__construct(\Horde_Rdo_Base  $rdo) 

New Horde_Rdo_Iterator for iterating over Rdo objects.

Parameters

\Horde_Rdo_Base $rdo

The object to iterate over

rewind()

rewind() 

Reset to the first key.

current()

current() : mixed

Return the current value.

Returns

mixed —

The current value

key()

key() : mixed

Return the current key.

Returns

mixed —

The current key

next()

next() 

Move to the next key in the iterator.

valid()

valid() : boolean

Check array bounds.

Returns

boolean —

Inside array bounds?