Mage_Sales_Model_Entity_Quote_Address Class Reference

Inheritance diagram for Mage_Sales_Model_Entity_Quote_Address:

Mage_Eav_Model_Entity_Abstract Mage_Core_Model_Resource_Abstract Mage_Eav_Model_Entity_Interface

List of all members.

Public Member Functions

 __construct ()
 collectTotals (Mage_Sales_Model_Quote_Address $address)
 fetchTotals (Mage_Sales_Model_Quote_Address $address)


Detailed Description

Definition at line 34 of file Address.php.


Constructor & Destructor Documentation

__construct (  ) 

Reimplemented from Mage_Core_Model_Resource_Abstract.

Definition at line 36 of file Address.php.

00037     {
00038         $resource = Mage::getSingleton('core/resource');
00039         $this->setType('quote_address')->setConnection(
00040             $resource->getConnection('sales_read'),
00041             $resource->getConnection('sales_write')
00042         );
00043     }


Member Function Documentation

collectTotals ( Mage_Sales_Model_Quote_Address address  ) 

Definition at line 45 of file Address.php.

00046     {
00047         $attributes = $this->loadAllAttributes()->getAttributesByCode();
00048         foreach ($attributes as $attrCode=>$attr) {
00049             $backend = $attr->getBackend();
00050             if (is_callable(array($backend, 'collectTotals'))) {
00051                 $backend->collectTotals($address);
00052             }
00053         }
00054         return $this;
00055     }

fetchTotals ( Mage_Sales_Model_Quote_Address address  ) 

Definition at line 57 of file Address.php.

00058     {
00059         $attributes = $this->loadAllAttributes()->getAttributesByCode();
00060         foreach ($attributes as $attrCode=>$attr) {
00061             $frontend = $attr->getFrontend();
00062             if (is_callable(array($frontend, 'fetchTotals'))) {
00063                 $frontend->fetchTotals($address);
00064             }
00065         }
00066 
00067         return $this;
00068     }


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

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