Reference concrete class that extends Zend_Db_Table_Rowset_Abstract.

Developers may also create their own classes that extend the abstract class.

category Zend
package Zend_Db
subpackage Table
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Db_Table_Rowset_Abstract

 Methods

Constructor.

__construct(array $config) 
Inherited

Parameters

$config

array

Store data, class names, and state in serialized object

__sleep() : array
Inherited

Returns

array

Setup to do on wakeup.

__wakeup() : void
Inherited

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

Returns the number of elements in the collection.

count() : integer
Inherited

Implements Countable::count()

Returns

integer

Return the current element.

current() : \Zend_Db_Table_Row_Abstract
Inherited

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

Returns

\Zend_Db_Table_Row_Abstractcurrent element from the collection

Returns a Zend_Db_Table_Row from a known position into the Iterator

getRow(integer $position, boolean $seek = false) : \Zend_Db_Table_Row
Inherited

Parameters

$position

integer

the position of the row expected

$seek

boolean

wether or not seek the iterator to that position after

Exceptions

\Zend_Db_Table_Rowset_Exception

Returns

\Zend_Db_Table_Row

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

getTable() : \Zend_Db_Table_Abstract
Inherited

Returns

\Zend_Db_Table_Abstract

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

getTableClass() : string
Inherited

Returns

string

Initialize object

init() : void
Inherited

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

Return the connected state of the rowset.

isConnected() : boolean
Inherited

Returns

boolean

Return the identifying key of the current element.

key() : integer
Inherited

Similar to the key() function for arrays in PHP. Required by interface Iterator.

Returns

integer

Move forward to next element.

next() : void
Inherited

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

Check if an offset exists Required by the ArrayAccess implementation

offsetExists(string $offset) : boolean
Inherited

Parameters

$offset

string

Returns

boolean

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

offsetGet(string $offset) : \Zend_Db_Table_Row_Abstract
Inherited

Parameters

$offset

string

Returns

\Zend_Db_Table_Row_Abstract

Does nothing Required by the ArrayAccess implementation

offsetSet(string $offset, mixed $value) 
Inherited

Parameters

$offset

string

$value

mixed

Does nothing Required by the ArrayAccess implementation

offsetUnset(string $offset) 
Inherited

Parameters

$offset

string

Rewind the Iterator to the first element.

rewind() : \Zend_Db_Table_Rowset_Abstract
Inherited

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

Returns

\Zend_Db_Table_Rowset_AbstractFluent interface.

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

seek(integer $position) : \Zend_Db_Table_Rowset_Abstract
Inherited

Parameters

$position

integer

the position to seek to

Exceptions

\Zend_Db_Table_Rowset_Exception

Returns

\Zend_Db_Table_Rowset_Abstract

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

setTable(\Zend_Db_Table_Abstract $table) : boolean
Inherited

Parameters

$table

\Zend_Db_Table_Abstract

Exceptions

\Zend_Db_Table_Row_Exception

Returns

boolean

Returns all data as an array.

toArray() : array
Inherited

Updates the $_data property with current row object values.

Returns

array

Check if there is a current element after calls to rewind() or next().

valid() : boolean
Inherited

Used to check if we've iterated to the end of the collection. Required by interface Iterator.

Returns

booleanFalse if there's nothing more to iterate over

_loadAndReturnRow()

_loadAndReturnRow($position) 
Inherited

Parameters

$position

 Properties

 

Connected is true if we have a reference to a live Zend_Db_Table_Abstract object.

$_connected : boolean

Default

true

This is false after the Rowset has been deserialized.

 

How many data rows there are.

$_count : integer

Default

 

The original data for each row.

$_data : array

Default

array()
 

Iterator pointer.

$_pointer : integer

Default

0
 

$_readOnly

$_readOnly : boolean

Default

false
 

Zend_Db_Table_Row_Abstract class name.

$_rowClass : string

Default

'Zend_Db_Table_Row'
 

Collection of instantiated Zend_Db_Table_Row objects.

$_rows : array

Default

array()
 

$_stored

$_stored : boolean

Default

false
 

Zend_Db_Table_Abstract object.

$_table : \Zend_Db_Table_Abstract

Default

 

Zend_Db_Table_Abstract class name.

$_tableClass : string

Default