Db_DataCollection
The Db_DataCollection class represents a collection of database objects.
Class fields
- $count – returns a number of objects in the collection
- $objectArray - an array containing collection elements. You can use this array for reading the collection content.
You can use the foreach loop for iterating over elements of the data collection, as if it was a regular array:
foreach ($product->images as $image)
{
...
}Next: Db_File
Previous: Db_ActiveRecord
Return to Reference

