Public Member Functions | |
setDateRange ($from, $to) | |
setStoreIds ($storeIds) | |
Protected Member Functions | |
_joinFields ($from= '', $to= '') |
Definition at line 35 of file Collection.php.
_joinFields | ( | $ | from = '' , |
|
$ | to = '' | |||
) | [protected] |
Definition at line 38 of file Collection.php.
00039 { 00040 $this->addAttributeToFilter('created_at' , array("from" => $from, "to" => $to, "datetime" => true)) 00041 ->addExpressionAttributeToSelect("accounts", "COUNT({{entity_id}})", array("entity_id")) 00042 ->getSelect()->group('("*")'); 00043 00044 return $this; 00045 }
setDateRange | ( | $ | from, | |
$ | to | |||
) |
Definition at line 47 of file Collection.php.
00048 { 00049 $this->_reset() 00050 ->_joinFields($from, $to); 00051 return $this; 00052 }
setStoreIds | ( | $ | storeIds | ) |
Definition at line 54 of file Collection.php.
00055 { 00056 $vals = array_values($storeIds); 00057 if (count($storeIds) >= 1 && $vals[0] != '') { 00058 $this->addAttributeToFilter('store_id', array('in' => (array)$storeIds)); 00059 } 00060 00061 return $this; 00062 }