Public Member Functions | |
__construct () | |
getTotalModels () | |
Protected Attributes | |
$_totalModels = null |
Definition at line 34 of file Config.php.
__construct | ( | ) |
Definition at line 38 of file Config.php.
00039 { 00040 parent::__construct(Mage::getConfig()->getNode('global/sales/order_creditmemo')); 00041 }
getTotalModels | ( | ) |
Retrieve invoice total calculation models
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 }
$_totalModels = null [protected] |
Definition at line 36 of file Config.php.