Mage_Reports_Model_Mysql4_Product_Ordered_Collection Class Reference

Inheritance diagram for Mage_Reports_Model_Mysql4_Product_Ordered_Collection:

Mage_Reports_Model_Mysql4_Product_Collection Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection Mage_Catalog_Model_Resource_Eav_Mysql4_Collection_Abstract Mage_Eav_Model_Entity_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 setDateRange ($from, $to)
 setStoreIds ($storeIds)

Protected Member Functions

 _joinFields ($from= '', $to= '')


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

_joinFields ( from = '',
to = '' 
) [protected]

Definition at line 37 of file Collection.php.

00038     {
00039         $this->addAttributeToSelect('*')
00040             ->addOrderedQty($from, $to)
00041             ->setOrder('ordered_qty', 'desc');
00042 
00043         return $this;
00044     }

setDateRange ( from,
to 
)

Definition at line 46 of file Collection.php.

00047     {
00048         $this->_reset()
00049             ->_joinFields($from, $to);
00050         return $this;
00051     }

setStoreIds ( storeIds  ) 

Definition at line 53 of file Collection.php.

00054     {
00055         $storeId = array_pop($storeIds);
00056         $this->setStoreId($storeId);
00057         $this->addStoreFilter($storeId);
00058         return $this;
00059     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:37 2009 for Magento by  doxygen 1.5.8