Zend Framework
1.12
|
Public Member Functions | |
__construct (array $config) | |
Constructor. | |
__sleep () | |
Store data, class names, and state in serialized object. | |
__wakeup () | |
Setup to do on wakeup. | |
init () | |
Initialize object. | |
isConnected () | |
Return the connected state of the rowset. | |
getTable () | |
Returns the table object, or null if this is disconnected rowset. | |
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. | |
getTableClass () | |
Query the class name of the Table object for which this Rowset was created. | |
rewind () | |
Rewind the Iterator to the first element. | |
current () | |
Return the current element. | |
key () | |
Return the identifying key of the current element. | |
next () | |
Move forward to next element. | |
valid () | |
Check if there is a current element after calls to rewind() or next(). | |
count () | |
Returns the number of elements in the collection. | |
seek ($position) | |
Take the Iterator to position $position Required by interface SeekableIterator. | |
offsetExists ($offset) | |
Check if an offset exists Required by the ArrayAccess implementation. | |
offsetGet ($offset) | |
Get the row for the given offset Required by the ArrayAccess implementation. | |
offsetSet ($offset, $value) | |
Does nothing Required by the ArrayAccess implementation. | |
offsetUnset ($offset) | |
Does nothing Required by the ArrayAccess implementation. | |
getRow ($position, $seek=false) | |
Returns a Zend_Db_Table_Row from a known position into the Iterator. | |
toArray () | |
Returns all data as an array. | |
Protected Member Functions | |
_loadAndReturnRow ($position) | |
Protected Attributes | |
$_data = array() | |
$_table | |
$_connected = true | |
$_tableClass | |
$_rowClass = 'Zend_Db_Table_Row' | |
$_pointer = 0 | |
$_count | |
$_rows = array() | |
$_stored = false | |
$_readOnly = false | |
__construct | ( | array | $config | ) |
Constructor.
array | $config |
__sleep | ( | ) |
Store data, class names, and state in serialized object.
__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.
|
protected |
count | ( | ) |
Returns the number of elements in the collection.
Implements Countable::count()
current | ( | ) |
Return the current element.
Similar to the current() function for arrays in PHP Required by interface Iterator.
getRow | ( | $position, | |
$seek = false |
|||
) |
Returns a Zend_Db_Table_Row from a known position into the Iterator.
int | $position | the position of the row expected |
bool | $seek | wether or not seek the iterator to that position after |
Zend_Db_Table_Rowset_Exception |
getTable | ( | ) |
Returns the table object, or null if this is disconnected rowset.
getTableClass | ( | ) |
Query the class name of the Table object for which this Rowset was created.
init | ( | ) |
isConnected | ( | ) |
Return the connected state of the rowset.
key | ( | ) |
Return the identifying key of the current element.
Similar to the key() function for arrays in PHP. Required by interface Iterator.
next | ( | ) |
Move forward to next element.
Similar to the next() function for arrays in PHP. Required by interface Iterator.
offsetExists | ( | $offset | ) |
Check if an offset exists Required by the ArrayAccess implementation.
string | $offset |
offsetGet | ( | $offset | ) |
Get the row for the given offset Required by the ArrayAccess implementation.
string | $offset |
offsetSet | ( | $offset, | |
$value | |||
) |
Does nothing Required by the ArrayAccess implementation.
string | $offset | |
mixed | $value |
offsetUnset | ( | $offset | ) |
Does nothing Required by the ArrayAccess implementation.
string | $offset |
rewind | ( | ) |
Rewind the Iterator to the first element.
Similar to the reset() function for arrays in PHP. Required by interface Iterator.
seek | ( | $position | ) |
Take the Iterator to position $position Required by interface SeekableIterator.
int | $position | the position to seek to |
Zend_Db_Table_Rowset_Exception |
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.
Zend_Db_Table_Abstract | $table |
Zend_Db_Table_Row_Exception |
toArray | ( | ) |
Returns all data as an array.
Updates the $_data property with current row object values.
valid | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |