Mage_Reports_Model_Mysql4_Product_Sold_Collection Class Reference

Inheritance diagram for Mage_Reports_Model_Mysql4_Product_Sold_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)


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

setDateRange ( from,
to 
)

Set Date range to collection

Parameters:
int $from
int $to
Returns:
Mage_Reports_Model_Mysql4_Product_Sold_Collection

Definition at line 44 of file Collection.php.

00045     {
00046         $this->_reset()
00047             ->addAttributeToSelect('*')
00048             ->addOrderedQty($from, $to)
00049             ->setOrder('ordered_qty', 'desc');
00050 
00051         return $this;
00052     }

setStoreIds ( storeIds  ) 

Set Store filter to collection

Parameters:
array $storeIds
Returns:
Mage_Reports_Model_Mysql4_Product_Sold_Collection

Definition at line 60 of file Collection.php.

00061     {
00062         $storeId = array_pop($storeIds);
00063         $this->setStoreId($storeId);
00064         $this->addStoreFilter($storeId);
00065         return $this;
00066     }


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