getNodeClassInstance("global/sales/quote/rule/conditions/$type"); return $config; } public function getQuoteRuleActionInstance($type) { return Mage::getConfig()->getNodeClassInstance("global/sales/quote/rule/actions/$type"); } /** * Retrieve order statuses for state * * @param string $state * @return array */ public function getOrderStatusesForState($state) { $states = Mage::getConfig()->getNode(self::XML_PATH_ORDER_STATES); if (!isset($states->$state) || !isset($states->$state->statuses)) { return array(); } $statuses = array(); foreach ($states->$state->statuses->children() as $status => $node) { $statuses[] = $status; } return $statuses; } }