Overview

Packages

  • Auth
  • Config
  • Controller
  • Date
  • Db
  • Feed
    • Abstract
    • Writers
  • File
    • Decorator
  • Form
    • Element
  • Image
  • Log
    • Writer
  • Net
    • Exception
    • REST
  • None
  • PHP
  • PHPMailer
  • Session
  • Util
  • Validate
    • Validator
  • Zend
    • Db
      • Adapter
      • Expr
      • Profiler
      • Select
      • Statement
      • Table
    • Loader
      • Autoloader
      • PluginLoader
    • Registry

Classes

  • Zend_Db_Table
  • Zend_Db_Table_Abstract
  • Zend_Db_Table_Definition
  • Zend_Db_Table_Row
  • Zend_Db_Table_Row_Abstract
  • Zend_Db_Table_Rowset
  • Zend_Db_Table_Rowset_Abstract
  • Zend_Db_Table_Select

Exceptions

  • Zend_Db_Table_Exception
  • Zend_Db_Table_Row_Exception
  • Zend_Db_Table_Rowset_Exception
  • Zend_Db_Table_Select_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Zend_Db_Table_Rowset_Abstract

Zend_Db_Table_Rowset_Abstract implements SeekableIterator, Countable, ArrayAccess

Direct known subclasses

Zend_Db_Table_Rowset
Abstract
Package: Zend\Db\Table
Category: Zend
Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: New BSD License
Located at Zend/Db/Table/Rowset/Abstract.php
Methods summary
public
# __construct( array $config )

Constructor.

Constructor.

Parameters

$config
array
public array
# __sleep( )

Store data, class names, and state in serialized object

Store data, class names, and state in serialized object

Returns

array
public
# __wakeup( )

Setup to do on wakeup. A de-serialized Rowset should not be assumed to have access to a live database connection, so set _connected = false.

Setup to do on wakeup. A de-serialized Rowset should not be assumed to have access to a live database connection, so set _connected = false.

public
# init( )

Initialize object

Initialize object

Called from Zend_Db_Table_Rowset_Abstract::__construct() as final step of object instantiation.

public boolean
# isConnected( )

Return the connected state of the rowset.

Return the connected state of the rowset.

Returns

boolean
public Zend_Db_Table_Abstract
# getTable( )

Returns the table object, or null if this is disconnected rowset

Returns the table object, or null if this is disconnected rowset

Returns

Zend_Db_Table_Abstract
public boolean
# setTable( Zend_Db_Table_Abstract $table )

Set the table object, to re-establish a live connection to the database for a Rowset that has been de-serialized.

Set the table object, to re-establish a live connection to the database for a Rowset that has been de-serialized.

Parameters

$table
Zend_Db_Table_Abstract

Returns

boolean

Throws

Zend_Db_Table_Row_Exception
public string
# getTableClass( )

Query the class name of the Table object for which this Rowset was created.

Query the class name of the Table object for which this Rowset was created.

Returns

string
public Zend_Db_Table_Rowset_Abstract
# rewind( )

Rewind the Iterator to the first element. Similar to the reset() function for arrays in PHP. Required by interface Iterator.

Rewind the Iterator to the first element. Similar to the reset() function for arrays in PHP. Required by interface Iterator.

Returns

Zend_Db_Table_Rowset_Abstract
Fluent interface.

Implementation of

Iterator::rewind
public Zend_Db_Table_Row_Abstract
# current( )

Return the current element. Similar to the current() function for arrays in PHP Required by interface Iterator.

Return the current element. Similar to the current() function for arrays in PHP Required by interface Iterator.

Returns

Zend_Db_Table_Row_Abstract
current element from the collection

Implementation of

Iterator::current
public integer
# key( )

Return the identifying key of the current element. Similar to the key() function for arrays in PHP. Required by interface Iterator.

Return the identifying key of the current element. Similar to the key() function for arrays in PHP. Required by interface Iterator.

Returns

integer

Implementation of

Iterator::key
public
# next( )

Move forward to next element. Similar to the next() function for arrays in PHP. Required by interface Iterator.

Move forward to next element. Similar to the next() function for arrays in PHP. Required by interface Iterator.

Implementation of

Iterator::next
public boolean
# valid( )

Check if there is a current element after calls to rewind() or next(). Used to check if we've iterated to the end of the collection. Required by interface Iterator.

Check if there is a current element after calls to rewind() or next(). Used to check if we've iterated to the end of the collection. Required by interface Iterator.

Returns

boolean
False if there's nothing more to iterate over

Implementation of

Iterator::valid
public integer
# count( )

Returns the number of elements in the collection.

Returns the number of elements in the collection.

Implements Countable::count()

Returns

integer

Implementation of

Countable::count
public Zend_Db_Table_Rowset_Abstract
# seek( integer $position )

Take the Iterator to position $position Required by interface SeekableIterator.

Take the Iterator to position $position Required by interface SeekableIterator.

Parameters

$position
integer
the position to seek to

Returns

Zend_Db_Table_Rowset_Abstract

Throws

Zend_Db_Table_Rowset_Exception

Implementation of

SeekableIterator::seek
public boolean
# offsetExists( string $offset )

Check if an offset exists Required by the ArrayAccess implementation

Check if an offset exists Required by the ArrayAccess implementation

Parameters

$offset
string

Returns

boolean

Implementation of

ArrayAccess::offsetExists
public Zend_Db_Table_Row_Abstract
# offsetGet( string $offset )

Get the row for the given offset Required by the ArrayAccess implementation

Get the row for the given offset Required by the ArrayAccess implementation

Parameters

$offset
string

Returns

Zend_Db_Table_Row_Abstract

Implementation of

ArrayAccess::offsetGet
public
# offsetSet( string $offset, mixed $value )

Does nothing Required by the ArrayAccess implementation

Does nothing Required by the ArrayAccess implementation

Parameters

$offset
string
$value
mixed

Implementation of

ArrayAccess::offsetSet
public
# offsetUnset( string $offset )

Does nothing Required by the ArrayAccess implementation

Does nothing Required by the ArrayAccess implementation

Parameters

$offset
string

Implementation of

ArrayAccess::offsetUnset
public Zend_Db_Table_Row
# getRow( integer $position, boolean $seek = false )

Returns a Zend_Db_Table_Row from a known position into the Iterator

Returns a Zend_Db_Table_Row from a known position into the Iterator

Parameters

$position
integer
the position of the row expected
$seek
boolean
wether or not seek the iterator to that position after

Returns

Zend_Db_Table_Row

Throws

Zend_Db_Table_Rowset_Exception
public array
# toArray( )

Returns all data as an array.

Returns all data as an array.

Updates the $_data property with current row object values.

Returns

array
protected
# _loadAndReturnRow( $position )
Properties summary
protected array $_data array()
#

The original data for each row.

The original data for each row.

protected Zend_Db_Table_Abstract $_table
#

Zend_Db_Table_Abstract object.

Zend_Db_Table_Abstract object.

protected boolean $_connected true
#

Connected is true if we have a reference to a live Zend_Db_Table_Abstract object. This is false after the Rowset has been deserialized.

Connected is true if we have a reference to a live Zend_Db_Table_Abstract object. This is false after the Rowset has been deserialized.

protected string $_tableClass
#

Zend_Db_Table_Abstract class name.

Zend_Db_Table_Abstract class name.

protected string $_rowClass 'Zend_Db_Table_Row'
#

Zend_Db_Table_Row_Abstract class name.

Zend_Db_Table_Row_Abstract class name.

protected integer $_pointer 0
#

Iterator pointer.

Iterator pointer.

protected integer $_count
#

How many data rows there are.

How many data rows there are.

protected array $_rows array()
#

Collection of instantiated Zend_Db_Table_Row objects.

Collection of instantiated Zend_Db_Table_Row objects.

protected boolean $_stored false
#
protected boolean $_readOnly false
#
Pry Framework API documentation generated by ApiGen 2.6.1