Mage_Reports_Model_Mysql4_Accounts_Collection Class Reference

Inheritance diagram for Mage_Reports_Model_Mysql4_Accounts_Collection:

Mage_Reports_Model_Mysql4_Customer_Collection Mage_Customer_Model_Entity_Customer_Collection 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 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     }


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

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