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.
Detailsinteger $_count = ''How many data rows there are.
Detailsarray $_data = 'array'The original data for each row.
Detailsinteger $_pointer = '0'Iterator pointer.
Detailsboolean $_readOnly = 'false'
Detailsstring $_rowClass = 'Zend_Db_Table_Row'Zend_Db_Table_Row_Abstract class name.
Detailsarray $_rows = 'array'Collection of instantiated Zend_Db_Table_Row objects.
Detailsboolean $_stored = 'false'
DetailsZend_Db_Table_Abstract $_table = ''Zend_Db_Table_Abstract object.
Detailsstring $_tableClass = ''Zend_Db_Table_Abstract class name.
Details__construct(
array $config
)
:
Constructor.
Details__sleep(
)
:
arrayStore data, class names, and state in serialized object
Details__wakeup(
)
:
voidSetup to do on wakeup.
A de-serialized Rowset should not be assumed to have access to a live database connection, so set _connected = false.
Detailscount(
)
:
intReturns the number of elements in the collection.
Implements Countable::count()
Detailscurrent(
)
:
Zend_Db_Table_Row_AbstractReturn the current element.
Similar to the current() function for arrays in PHP Required by interface Iterator.
DetailsgetRow(
int $position, bool $seek
=
false
)
:
Zend_Db_Table_RowReturns a Zend_Db_Table_Row from a known position into the Iterator
DetailsgetTable(
)
:
Zend_Db_Table_AbstractReturns the table object, or null if this is disconnected rowset
DetailsgetTableClass(
)
:
stringQuery the class name of the Table object for which this Rowset was created.
Detailsinit(
)
:
voidInitialize object
Called from {@link __construct()} as final step of object instantiation.
DetailsisConnected(
)
:
booleanReturn the connected state of the rowset.
Detailskey(
)
:
intReturn the identifying key of the current element.
Similar to the key() function for arrays in PHP. Required by interface Iterator.
Detailsnext(
)
:
voidMove forward to next element.
Similar to the next() function for arrays in PHP. Required by interface Iterator.
DetailsoffsetExists(
string $offset
)
:
booleanCheck if an offset exists Required by the ArrayAccess implementation
DetailsoffsetGet(
string $offset
)
:
Zend_Db_Table_Row_AbstractGet the row for the given offset Required by the ArrayAccess implementation
DetailsoffsetSet(
string $offset, mixed $value
)
:
Does nothing Required by the ArrayAccess implementation
DetailsoffsetUnset(
string $offset
)
:
Does nothing Required by the ArrayAccess implementation
Detailsrewind(
)
:
Zend_Db_Table_Rowset_AbstractRewind the Iterator to the first element.
Similar to the reset() function for arrays in PHP. Required by interface Iterator.
Detailsseek(
int $position
)
:
Zend_Db_Table_Rowset_AbstractTake the Iterator to position $position Required by interface SeekableIterator.
DetailssetTable(
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.
DetailstoArray(
)
:
arrayReturns all data as an array.
Updates the $_data property with current row object values.
Detailsvalid(
)
:
boolCheck 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.
Details