Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

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.
true
Details
string
$_rowClass= ''Zend_Db_Table_Row''
Zend_Db_Table_Row_Abstract class name.
'Zend_Db_Table_Row'
Details
array
$_rows= 'array()'
Collection of instantiated Zend_Db_Table_Row objects.
array()
Details
__sleep(
)
:
array
Store data, class names, and state in serialized object
Type | Description |
---|---|
array |

__wakeup(
)
:
void
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.

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

current(
)
:
\Zend_Db_Table_Row_Abstract
Return the current element.
Similar to the current() function for arrays in PHP Required by interface Iterator.
Type | Description |
---|---|
\Zend_Db_Table_Row_Abstract | current element from the collection |

getRow(
int $position, bool $seek
=
false
)
:
\Zend_Db_Table_Row
Returns 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_Abstract
Returns the table object, or null if this is disconnected rowset
Type | Description |
---|---|
\Zend_Db_Table_Abstract |

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

init(
)
:
void
Initialize object
Called from {@link __construct()} as final step of object instantiation.

key(
)
:
int
Return the identifying key of the current element.
Similar to the key() function for arrays in PHP. Required by interface Iterator.
Type | Description |
---|---|
int |

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

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

offsetGet(
string $offset
)
:
\Zend_Db_Table_Row_Abstract
Get 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
)
:
void
Does nothing Required by the ArrayAccess implementation
Name | Type | Description |
---|---|---|
$offset | string | |
$value | mixed |

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

rewind(
)
:
\Zend_Db_Table_Rowset_Abstract
Rewind the Iterator to the first element.
Similar to the reset() function for arrays in PHP. Required by interface Iterator.
Type | Description |
---|---|
\Zend_Db_Table_Rowset_Abstract | Fluent interface. |

seek(
int $position
)
:
\Zend_Db_Table_Rowset_Abstract
Take 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
)
:
boolean
Set 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(
)
:
array
Returns all data as an array.
Updates the $_data property with current row object values.
Type | Description |
---|---|
array |