Overview

Packages

  • Rdo

Classes

  • Horde_Rdo
  • Horde_Rdo_Base
  • Horde_Rdo_Exception
  • Horde_Rdo_Iterator
  • Horde_Rdo_List
  • Horde_Rdo_Mapper
  • Horde_Rdo_Query
  • Horde_Rdo_Query_Literal
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Rdo_List

Iterator for collections of Rdo objects.

Horde_Rdo_List implements Iterator, Countable
Package: Rdo
Category: Horde
Located at Horde/Rdo/List.php
Methods summary
public
# __construct( mixed $query, Horde_Rdo_Mapper $mapper = null )

Constructor.

Constructor.

Parameters

$query
<p>The query to run when results are requested. Can be a Horde_Rdo_Query object, a literal SQL query, or a tuple containing an SQL string and an array of bind parameters to use.</p>
$mapper
Mapper to create objects for this list from.
public
# __destruct( )

Destructor - release any resources.

Destructor - release any resources.

public
# rewind( )

Implementation of the rewind() method for iterator.

Implementation of the rewind() method for iterator.

Implementation of

Iterator::rewind()
public mixed
# current( )

Implementation of the current() method for iterator.

Implementation of the current() method for iterator.

Returns

mixed
The current row, or null if no rows.

Implementation of

Iterator::current()
public mixed
# key( )

Implementation of the key() method for iterator.

Implementation of the key() method for iterator.

Returns

mixed
The current row number (starts at 0), or NULL if no rows

Implementation of

Iterator::key()
public Horde_Rdo_Base|null
# next( )

Implementation of the next() method.

Implementation of the next() method.

Returns

Horde_Rdo_Base|null

The next Rdo object in the set or null if no more results.

Implementation of

Iterator::next()
public boolean
# valid( )

Implementation of the valid() method for iterator

Implementation of the valid() method for iterator

Returns

boolean
Whether the iteration is valid

Implementation of

Iterator::valid()
public integer
# count( )

Implementation of count() for Countable

Implementation of count() for Countable

Returns

integer
Number of elements in the list

Implementation of

Countable::count()
API documentation generated by ApiGen