Public Member Functions | |
setDateRange ($from, $to) | |
setStoreIds ($storeIds) |
Definition at line 35 of file Collection.php.
setDateRange | ( | $ | from, | |
$ | to | |||
) |
Set Date range to collection
int | $from | |
int | $to |
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
array | $storeIds |
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 }