Db/Table/Rowset/Abstract.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Db
- Subpackage
- Table
- Version
- $Id$
\Zend_Db_Table_Rowset_Abstract
- Implements
- Children
- \Zend_Db_Table_Rowset
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

boolean $_connected = truetrueDetails- Type
- boolean

string $_rowClass = 'Zend_Db_Table_Row''Zend_Db_Table_Row'Details- Type
- string

array $_rows = array()array()Details- Type
- array
Methods

__wakeup() : voidSetup to do on wakeup.

count() : intReturns the number of elements in the collection.
| Type | Description |
|---|---|
| int |

current() : \Zend_Db_Table_Row_AbstractReturn the current element.
| Type | Description |
|---|---|
| \Zend_Db_Table_Row_Abstract | current element from the collection |

getRow(int $position, bool $seek = false) : \Zend_Db_Table_RowReturns a Zend_Db_Table_Row from a known position into the Iterator
| Name | Type | Description |
|---|---|---|
| $position | int | the position of the row expected |
| $seek | bool | wether or not seek the iterator to that position after |
| Type | Description |
|---|---|
| \Zend_Db_Table_Row |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Rowset_Exception |

getTable() : \Zend_Db_Table_AbstractReturns the table object, or null if this is disconnected rowset
| Type | Description |
|---|---|
| \Zend_Db_Table_Abstract |

getTableClass() : stringQuery the class name of the Table object for which this Rowset was created.
| Type | Description |
|---|---|
| string |

init() : voidInitialize object

key() : intReturn the identifying key of the current element.
| Type | Description |
|---|---|
| int |

next() : voidMove forward to next element.

offsetExists(string $offset) : booleanCheck if an offset exists Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string |
| Type | Description |
|---|---|
| boolean |

offsetGet(string $offset) : \Zend_Db_Table_Row_AbstractGet the row for the given offset Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string |
| Type | Description |
|---|---|
| \Zend_Db_Table_Row_Abstract |

offsetSet(string $offset, mixed $value) : voidDoes nothing Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string | |
| $value | mixed |

offsetUnset(string $offset) : voidDoes nothing Required by the ArrayAccess implementation
| Name | Type | Description |
|---|---|---|
| $offset | string |

rewind() : \Zend_Db_Table_Rowset_AbstractRewind the Iterator to the first element.
| Type | Description |
|---|---|
| \Zend_Db_Table_Rowset_Abstract | Fluent interface. |

seek(int $position) : \Zend_Db_Table_Rowset_AbstractTake the Iterator to position $position Required by interface SeekableIterator.
| Name | Type | Description |
|---|---|---|
| $position | int | the position to seek to |
| Type | Description |
|---|---|
| \Zend_Db_Table_Rowset_Abstract |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Rowset_Exception |

setTable(\Zend_Db_Table_Abstract $table) : booleanSet the table object, to re-establish a live connection to the database for a Rowset that has been de-serialized.
| Name | Type | Description |
|---|---|---|
| $table | \Zend_Db_Table_Abstract |
| Type | Description |
|---|---|
| boolean |
| Exception | Description |
|---|---|
| \Zend_Db_Table_Row_Exception |

toArray() : arrayReturns all data as an array.
| Type | Description |
|---|---|
| array |