Class Mage_Sales_Model_Mysql4_Collection_Abstract

Description

Flat sales abstract collection

  • copyright: Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
  • abstract:

Located in /Sales/Model/Mysql4/Collection/Abstract.php (line 31)

Varien_Data_Collection_Db
   |
   --Mage_Core_Model_Mysql4_Collection_Abstract
      |
      --Mage_Sales_Model_Mysql4_Collection_Abstract
Direct descendents
Class Description
Mage_Sales_Model_Mysql4_Order_Invoice_Item_Collection Flat sales order invoice item collection
Mage_Sales_Model_Mysql4_Order_Comment_Collection_Abstract Flat sales order abstract comments collection, used as parent for: invoice, shipment, creditmemo
Mage_Sales_Model_Mysql4_Order_Collection Flat sales order collection
Mage_Sales_Model_Mysql4_Order_Collection_Abstract Flat sales order collection
Mage_Sales_Model_Mysql4_Order_Creditmemo_Item_Collection Flat sales order creditmemo items collection
Mage_Sales_Model_Mysql4_Order_Shipment_Item_Collection Flat sales order shipment items collection
Method Summary
Mage_Sales_Model_Mysql4_Collection_Abstract addAttributeToFilter (string|Mage_Eav_Model_Entity_Attribute $attribute, [array|integer|string|null $condition = null])
Mage_Sales_Model_Mysql4_Collection_Abstract addAttributeToSort (string $attribute, [string $dir = 'asc'])
array getAllIds ([int $limit = null], [int $offset = null])
void joinAttribute ( $alias,  $attribute,  $bind, [ $filter = null], [ $joinType = 'inner'], [ $storeId = null])
Mage_Eav_Model_Entity_Collection_Abstract setPage (integer $pageNum, integer $pageSize)
Mage_Eav_Model_Entity_Collection_Abstract _getAllIdsSelect ([ $limit = null], [ $offset = null])
Variables
Methods
addAttributeToFilter (line 74)

Specify collection select filter by attribute value Backward compatibility with EAV collection

  • access: public
Mage_Sales_Model_Mysql4_Collection_Abstract addAttributeToFilter (string|Mage_Eav_Model_Entity_Attribute $attribute, [array|integer|string|null $condition = null])
addAttributeToSelect (line 60)

Add attribute to select result set.

Backward compatibility with EAV collection

  • access: public
Mage_Sales_Model_Mysql4_Collection_Abstract addAttributeToSelect (string $attribute)
  • string $attribute
addAttributeToSort (line 88)

Specify collection select filter by attribute value Backward compatibility with EAV collection

  • access: public
Mage_Sales_Model_Mysql4_Collection_Abstract addAttributeToSort (string $attribute, [string $dir = 'asc'])
  • string $attribute
  • string $dir
getAllIds (line 135)

Retrive all ids for collection Backward compatibility with EAV collection

  • access: public
array getAllIds ([int $limit = null], [int $offset = null])
  • int $limit
  • int $offset

Redefinition of:
Mage_Core_Model_Mysql4_Collection_Abstract::getAllIds()
Retrive all ids for collection
joinAttribute (line 148)

Backward compatibility with EAV collection

  • todo: implement join functionality if necessary
  • access: public
void joinAttribute ( $alias,  $attribute,  $bind, [ $filter = null], [ $joinType = 'inner'], [ $storeId = null])
  • $alias
  • $attribute
  • $bind
  • $filter
  • $joinType
  • $storeId
setPage (line 102)

Set collection page start and records to show Backward compatibility with EAV collection

  • access: public
Mage_Eav_Model_Entity_Collection_Abstract setPage (integer $pageNum, integer $pageSize)
  • integer $pageNum
  • integer $pageSize
_attributeToField (line 39)

Check if $attribute is Mage_Eav_Model_Entity_Attribute and convert to string field name

  • access: protected
string _attributeToField (string|Mage_Eav_Model_Entity_Attribute $attribute)
_getAllIdsSelect (line 115)

Create all ids retrieving select with limitation Backward compatibility with EAV collection

  • access: protected
Mage_Eav_Model_Entity_Collection_Abstract _getAllIdsSelect ([ $limit = null], [ $offset = null])
  • $limit
  • $offset

Redefined in descendants as:

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Collection_Abstract

Mage_Core_Model_Mysql4_Collection_Abstract::__construct()
Mage_Core_Model_Mysql4_Collection_Abstract::addExpressionFieldToSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::addFieldToSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::getAllIds()
Mage_Core_Model_Mysql4_Collection_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Collection_Abstract::getModelName()
Mage_Core_Model_Mysql4_Collection_Abstract::getResource()
Mage_Core_Model_Mysql4_Collection_Abstract::getResourceModelName()
Mage_Core_Model_Mysql4_Collection_Abstract::getSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::getTable()
Mage_Core_Model_Mysql4_Collection_Abstract::join()
Mage_Core_Model_Mysql4_Collection_Abstract::removeAllFieldsFromSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::removeFieldFromSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::resetItemsDataChanged()
Mage_Core_Model_Mysql4_Collection_Abstract::save()
Mage_Core_Model_Mysql4_Collection_Abstract::setMainTable()
Mage_Core_Model_Mysql4_Collection_Abstract::setModel()
Mage_Core_Model_Mysql4_Collection_Abstract::setResetItemsDataChanged()
Mage_Core_Model_Mysql4_Collection_Abstract::setResourceModel()
Mage_Core_Model_Mysql4_Collection_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Collection_Abstract::_beforeLoad()
Mage_Core_Model_Mysql4_Collection_Abstract::_canUseCache()
Mage_Core_Model_Mysql4_Collection_Abstract::_construct()
Mage_Core_Model_Mysql4_Collection_Abstract::_getCacheTags()
Mage_Core_Model_Mysql4_Collection_Abstract::_getInitialFieldsToSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::_init()
Mage_Core_Model_Mysql4_Collection_Abstract::_initInitialFieldsToSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::_initSelect()
Mage_Core_Model_Mysql4_Collection_Abstract::_initSelectFields()
Mage_Core_Model_Mysql4_Collection_Abstract::_loadCache()
Mage_Core_Model_Mysql4_Collection_Abstract::_saveCache()
Class Constants

Documentation generated on Fri, 11 Feb 2011 16:54:49 +0200 by phpDocumentor 1.4.3