Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (array $config) | |
__sleep () | |
__wakeup () | |
init () | |
isConnected () | |
getTable () | |
setTable (Zend_Db_Table_Abstract $table) | |
getTableClass () | |
rewind () | |
current () | |
key () | |
next () | |
valid () | |
count () | |
seek ($position) | |
offsetExists ($offset) | |
offsetGet ($offset) | |
offsetSet ($offset, $value) | |
offsetUnset ($offset) | |
getRow ($position, $seek=false) | |
toArray () | |
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 | |
Definition at line 30 of file Abstract.php.
__construct | ( | array | $config | ) |
Constructor.
array | $config |
Definition at line 105 of file Abstract.php.
__sleep | ( | ) |
Store data, class names, and state in serialized object
Definition at line 139 of file Abstract.php.
__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.
Definition at line 152 of file Abstract.php.
|
protected |
Definition at line 413 of file Abstract.php.
count | ( | ) |
Returns the number of elements in the collection.
Implements Countable::count()
Definition at line 296 of file Abstract.php.
current | ( | ) |
Return the current element. Similar to the current() function for arrays in PHP Required by interface Iterator.
Definition at line 243 of file Abstract.php.
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 |
Definition at line 380 of file Abstract.php.
getTable | ( | ) |
Returns the table object, or null if this is disconnected rowset
Definition at line 183 of file Abstract.php.
getTableClass | ( | ) |
Query the class name of the Table object for which this Rowset was created.
Definition at line 218 of file Abstract.php.
init | ( | ) |
Initialize object
Called from __construct() as final step of object instantiation.
Definition at line 164 of file Abstract.php.
isConnected | ( | ) |
Return the connected state of the rowset.
Definition at line 173 of file Abstract.php.
key | ( | ) |
Return the identifying key of the current element. Similar to the key() function for arrays in PHP. Required by interface Iterator.
Definition at line 260 of file Abstract.php.
next | ( | ) |
Move forward to next element. Similar to the next() function for arrays in PHP. Required by interface Iterator.
Definition at line 272 of file Abstract.php.
offsetExists | ( | $offset | ) |
Check if an offset exists Required by the ArrayAccess implementation
string | $offset |
Definition at line 327 of file Abstract.php.
offsetGet | ( | $offset | ) |
Get the row for the given offset Required by the ArrayAccess implementation
string | $offset |
Definition at line 339 of file Abstract.php.
offsetSet | ( | $offset, | |
$value | |||
) |
Does nothing Required by the ArrayAccess implementation
string | $offset | |
mixed | $value |
Definition at line 358 of file Abstract.php.
offsetUnset | ( | $offset | ) |
Does nothing Required by the ArrayAccess implementation
string | $offset |
Definition at line 368 of file Abstract.php.
rewind | ( | ) |
Rewind the Iterator to the first element. Similar to the reset() function for arrays in PHP. Required by interface Iterator.
Definition at line 230 of file Abstract.php.
seek | ( | $position | ) |
Take the Iterator to position $position Required by interface SeekableIterator.
int | $position | the position to seek to |
Zend_Db_Table_Rowset_Exception |
Definition at line 309 of file Abstract.php.
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 |
Definition at line 196 of file Abstract.php.
toArray | ( | ) |
Returns all data as an array.
Updates the $_data property with current row object values.
Definition at line 403 of file Abstract.php.
valid | ( | ) |
Check 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.
Definition at line 284 of file Abstract.php.
|
protected |
Definition at line 53 of file Abstract.php.
|
protected |
Definition at line 81 of file Abstract.php.
|
protected |
Definition at line 37 of file Abstract.php.
|
protected |
Definition at line 74 of file Abstract.php.
|
protected |
Definition at line 98 of file Abstract.php.
|
protected |
Definition at line 67 of file Abstract.php.
|
protected |
Definition at line 88 of file Abstract.php.
|
protected |
Definition at line 93 of file Abstract.php.
|
protected |
Definition at line 44 of file Abstract.php.
|
protected |
Definition at line 60 of file Abstract.php.