public function addTransaction($action = '', $customer = null, $object = null, $extraContent = array()) { if (Mage::helper('customerreward')->isDisabled()) { return false; } try { Magestore_Customerreward_Model_Actions_Abstract::getInstance($action, $customer, $object, $extraContent)->addTransaction()->additionAction(); } catch (Exception $e) { return false; } return $this; }
public function getActionInstance() { return Magestore_Customerreward_Model_Actions_Abstract::getInstance($this->getAction(), $this->getCustomer())->setTransaction($this); }