Mage_Sales_Model_Order_Creditmemo_Config Class Reference

Inheritance diagram for Mage_Sales_Model_Order_Creditmemo_Config:

Mage_Core_Model_Config_Base Varien_Simplexml_Config

List of all members.

Public Member Functions

 __construct ()
 getTotalModels ()

Protected Attributes

 $_totalModels = null


Detailed Description

Definition at line 34 of file Config.php.


Constructor & Destructor Documentation

__construct (  ) 

Definition at line 38 of file Config.php.

00039     {
00040         parent::__construct(Mage::getConfig()->getNode('global/sales/order_creditmemo'));
00041     }


Member Function Documentation

getTotalModels (  ) 

Retrieve invoice total calculation models

Returns:
array

Definition at line 48 of file Config.php.

00049     {
00050         if (is_null($this->_totalModels)) {
00051             $this->_totalModels = array();
00052             $totalsConfig = $this->getNode('totals');
00053             foreach ($totalsConfig->children() as $totalCode=>$totalConfig) {
00054                 $class = $totalConfig->getClassName();
00055                 if ($class && ($model = Mage::getModel($class))) {
00056                     $this->_totalModels[] = $model;
00057                 }
00058             }
00059         }
00060         return $this->_totalModels;
00061     }


Member Data Documentation

$_totalModels = null [protected]

Definition at line 36 of file Config.php.


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

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