Mage_Customer_Model_Entity_Address_Collection Class Reference

Inheritance diagram for Mage_Customer_Model_Entity_Address_Collection:

Mage_Eav_Model_Entity_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 setCustomerFilter ($customer)

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 34 of file Collection.php.


Member Function Documentation

_construct (  )  [protected]

Initialize collection

Reimplemented from Mage_Eav_Model_Entity_Collection_Abstract.

Definition at line 36 of file Collection.php.

00037     {
00038         $this->_init('customer/address');
00039     }

setCustomerFilter ( customer  ) 

Definition at line 41 of file Collection.php.

00042     {
00043         if ($customer->getId()) {
00044             $this->addAttributeToFilter('parent_id', $customer->getId());
00045         }
00046         else {
00047             $this->addAttributeToFilter('parent_id', '-1');
00048         }
00049         return $this;
00050     }


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

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