Public Member Functions | |
__construct () | |
collectTotals (Mage_Sales_Model_Quote_Address $address) | |
fetchTotals (Mage_Sales_Model_Quote_Address $address) |
Definition at line 34 of file Address.php.
__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 }
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 }