Class Mage_Reports_Model_Mysql4_Customer_Collection

Description

Customers Report collection

Located in /Reports/Model/Mysql4/Customer/Collection.php (line 35)

Varien_Data_Collection_Db
   |
   --Mage_Eav_Model_Entity_Collection_Abstract
      |
      --Mage_Customer_Model_Entity_Customer_Collection
         |
         --Mage_Reports_Model_Mysql4_Customer_Collection
Direct descendents
Class Description
Mage_Reports_Model_Mysql4_Accounts_Collection New Accounts Report collection
Variable Summary
Method Summary
Variables
boolean $_addOrderStatistics = false (line 42)

Add order statistics flag

  • access: protected
boolean $_addOrderStatisticsIsFilter = false (line 48)

Add order statistics is filter flag

  • access: protected
mixed $_customerIdFieldName (line 51)
  • access: protected
mixed $_customerIdTableName (line 50)
  • access: protected
mixed $_orderEntityFieldName (line 53)
  • access: protected
mixed $_orderEntityTableName (line 52)
  • access: protected

Inherited Variables

Inherited from Mage_Eav_Model_Entity_Collection_Abstract

Mage_Eav_Model_Entity_Collection_Abstract::$_entity
Mage_Eav_Model_Entity_Collection_Abstract::$_filterAttributes
Mage_Eav_Model_Entity_Collection_Abstract::$_itemsById
Mage_Eav_Model_Entity_Collection_Abstract::$_joinAttributes
Mage_Eav_Model_Entity_Collection_Abstract::$_joinEntities
Mage_Eav_Model_Entity_Collection_Abstract::$_joinFields
Mage_Eav_Model_Entity_Collection_Abstract::$_selectAttributes
Mage_Eav_Model_Entity_Collection_Abstract::$_selectEntityTypes
Mage_Eav_Model_Entity_Collection_Abstract::$_staticFields
Methods
addCartInfo (line 55)
  • access: public
void addCartInfo ()
addCustomerName (line 76)
  • access: public
void addCustomerName ()
addOrdersCount (line 110)

Add orders count

  • access: public
addOrdersStatistics (line 156)

Add order statistics

  • access: public
Mage_Reports_Model_Mysql4_Customer_Collection addOrdersStatistics ([ $isFilter = false])
  • $isFilter
addSumAvgTotals (line 128)

Order summary info for each customer such as orders_count, orders_avg_amount, orders_total_amount

  • access: public
Mage_Reports_Model_Mysql4_Customer_Collection addSumAvgTotals ([int $storeId = 0])
  • int $storeId
getSelectCountSql (line 211)
  • access: public
void getSelectCountSql ()

Redefinition of:
Mage_Customer_Model_Entity_Customer_Collection::getSelectCountSql()
Get SQL for get record count
joinOrders (line 89)

Order for each customer

  • access: public
Mage_Reports_Model_Mysql4_Customer_Collection joinOrders ([string $from = ''], [string $to = ''])
  • string $from
  • string $to
orderByCustomerRegistration (line 205)
  • access: public
void orderByCustomerRegistration ([ $dir = 'desc'])
  • $dir
orderByTotalAmount (line 144)
  • access: public
void orderByTotalAmount ([ $dir = 'desc'])
  • $dir
_addOrdersStatistics (line 168)

Add orders statistics to collection items

  • access: protected
_afterLoad (line 199)

Collection after load operations like adding orders statistics

  • access: protected

Redefinition of:
Mage_Eav_Model_Entity_Collection_Abstract::_afterLoad()

Inherited Methods

Inherited From Mage_Customer_Model_Entity_Customer_Collection

Mage_Customer_Model_Entity_Customer_Collection::addNameToSelect()
Mage_Customer_Model_Entity_Customer_Collection::getSelectCountSql()
Mage_Customer_Model_Entity_Customer_Collection::groupByEmail()
Mage_Customer_Model_Entity_Customer_Collection::_construct()
Mage_Customer_Model_Entity_Customer_Collection::_getAllIdsSelect()

Inherited From Mage_Eav_Model_Entity_Collection_Abstract

Mage_Eav_Model_Entity_Collection_Abstract::__construct()
Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToFilter()
Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToSelect()
Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToSort()
Mage_Eav_Model_Entity_Collection_Abstract::addEntityTypeToSelect()
Mage_Eav_Model_Entity_Collection_Abstract::addExpressionAttributeToSelect()
Mage_Eav_Model_Entity_Collection_Abstract::addFieldToFilter()
Mage_Eav_Model_Entity_Collection_Abstract::addItem()
Mage_Eav_Model_Entity_Collection_Abstract::addStaticField()
Mage_Eav_Model_Entity_Collection_Abstract::delete()
Mage_Eav_Model_Entity_Collection_Abstract::exportToArray()
Mage_Eav_Model_Entity_Collection_Abstract::getAllIds()
Mage_Eav_Model_Entity_Collection_Abstract::getAllIdsSql()
Mage_Eav_Model_Entity_Collection_Abstract::getAttribute()
Mage_Eav_Model_Entity_Collection_Abstract::getEntity()
Mage_Eav_Model_Entity_Collection_Abstract::getLoadedIds()
Mage_Eav_Model_Entity_Collection_Abstract::getResource()
Mage_Eav_Model_Entity_Collection_Abstract::getRowIdFieldName()
Mage_Eav_Model_Entity_Collection_Abstract::getTable()
Mage_Eav_Model_Entity_Collection_Abstract::groupByAttribute()
Mage_Eav_Model_Entity_Collection_Abstract::importFromArray()
Mage_Eav_Model_Entity_Collection_Abstract::joinAttribute()
Mage_Eav_Model_Entity_Collection_Abstract::joinField()
Mage_Eav_Model_Entity_Collection_Abstract::joinTable()
Mage_Eav_Model_Entity_Collection_Abstract::load()
Mage_Eav_Model_Entity_Collection_Abstract::removeAttributeToSelect()
Mage_Eav_Model_Entity_Collection_Abstract::save()
Mage_Eav_Model_Entity_Collection_Abstract::setEntity()
Mage_Eav_Model_Entity_Collection_Abstract::setObject()
Mage_Eav_Model_Entity_Collection_Abstract::setOrder()
Mage_Eav_Model_Entity_Collection_Abstract::setPage()
Mage_Eav_Model_Entity_Collection_Abstract::setRowIdFieldName()
Mage_Eav_Model_Entity_Collection_Abstract::toArray()
Mage_Eav_Model_Entity_Collection_Abstract::_addAttributeJoin()
Mage_Eav_Model_Entity_Collection_Abstract::_afterLoad()
Mage_Eav_Model_Entity_Collection_Abstract::_beforeLoad()
Mage_Eav_Model_Entity_Collection_Abstract::_construct()
Mage_Eav_Model_Entity_Collection_Abstract::_getAllIdsSelect()
Mage_Eav_Model_Entity_Collection_Abstract::_getAttributeConditionSql()
Mage_Eav_Model_Entity_Collection_Abstract::_getAttributeFieldName()
Mage_Eav_Model_Entity_Collection_Abstract::_getAttributeTableAlias()
Mage_Eav_Model_Entity_Collection_Abstract::_getLoadAttributesSelect()
Mage_Eav_Model_Entity_Collection_Abstract::_init()
Mage_Eav_Model_Entity_Collection_Abstract::_initSelect()
Mage_Eav_Model_Entity_Collection_Abstract::_joinAttributeToSelect()
Mage_Eav_Model_Entity_Collection_Abstract::_loadAttributes()
Mage_Eav_Model_Entity_Collection_Abstract::_loadEntities()
Mage_Eav_Model_Entity_Collection_Abstract::_prepareStaticFields()
Mage_Eav_Model_Entity_Collection_Abstract::_reset()
Mage_Eav_Model_Entity_Collection_Abstract::_setItemAttributeValue()

Documentation generated on Fri, 11 Feb 2011 16:57:55 +0200 by phpDocumentor 1.4.3