find() public method

Primary key mode: pass find() a numerically indexed array of primary keys, and it will return a list of the objects that correspond to those keys. If you pass find() no arguments, all objects of this type will be returned. If you pass find() an associative array, it will be turned into a Horde_Rdo_Query object. If you pass find() a Horde_Rdo_Query, it will return a list of all objects matching that query.
public find ( $arg = null )
Example #1
0
 /**
  * Implementation of the offsetGet() method for ArrayAccess
  * This method is executed when using isset() or empty() on Horde_Rdo_List objects
  * @param integer $offset  The offset to retrieve.
  *
  * @return Horde_Rdo_Base  An entity object at the offset position or null
  */
 public function offsetGet($offset)
 {
     $query = Horde_Rdo_Query::create($this->_query);
     $query->limit(1, $offset);
     return $this->_mapper->find($query)->current();
 }