Entity/Attribute/Model - collection abstract
Located in /Eav/Model/Entity/Collection/Abstract.php (line 34)
Varien_Data_Collection_Db | --Mage_Eav_Model_Entity_Collection_Abstract
Entity object to define collection's attributes
Attributes to be filtered order sorted by
Array of items with item id key
Joined attributes
Joined entities
Joined fields data
Attributes to be fetched for objects in collection
Entity types to be fetched for objects in collection
Entity static fields
Collection constructor
Add attribute filter to collection
If $attribute is an array will add OR condition with following format: array( array('attribute'=>'firstname', 'like'=>'test%'), array('attribute'=>'lastname', 'like'=>'test%'), )
Add attribute to entities in collection
If $attribute=='*' select all attributes
Add attribute to sort order
Add attribute expression (SUM, COUNT, etc)
Example: ('sub_total', 'SUM({{attribute}})', 'revenue') Example: ('sub_total', 'SUM({{revenue}})', 'revenue')
For some functions like SUM use groupByAttribute.
Wrapper for compatibility with Varien_Data_Collection_Db
Add an object to the collection
Add field to static
Delete all the entities in the collection
Get collection data as a 2D array
Retrive all ids for collection
Retrive all ids sql
Retrieve entity attribute
Returns already loaded element ids
return array
Groups results by specified attribute
Import 2D array into collection as objects
If the imported items already exist, update the data for existing objects
Add attribute from joined entity to select
Examples: ('billing_firstname', 'customer_address/firstname', 'default_billing') ('billing_lastname', 'customer_address/lastname', 'default_billing') ('shipping_lastname', 'customer_address/lastname', 'default_billing') ('shipping_postalcode', 'customer_address/postalcode', 'default_shipping') ('shipping_city', $cityAttribute, 'default_shipping')
Developer is encouraged to use existing instances of attributes and entities After first use of string entity name it will be cached in the collection
Join regular table field and use an attribute as fk
Examples: ('country_name', 'directory/country_name', 'name', 'country_id=shipping_country', "{{table}}.language_code='en'", 'left')
Join a table
Load collection data into object items
Remove an attribute from selection list
Save all the entities in the collection
Set entity to use for attributes
Set template object for the collection
Set sorting order
$attribute can also be an array of attributes
Set collection page start and records to show
Add attribute value table to the join if it wasn't added previously
Initialize collection
Clone and reset collection
Get condition sql for the attribute
Get alias for attribute value table
Retrieve attributes load select
Standard resource collection initalization
Adding join statement to collection select instance
Load attributes into loaded entities
Load entities records into items
Prepare static entity fields
Initialize entity ubject property value
$valueInfo is _getLoadAttributesSelect fetch result row
Documentation generated on Fri, 11 Feb 2011 16:54:54 +0200 by phpDocumentor 1.4.3