Ejemplo n.º 1
0
 protected function _factory($code, $type, $class = '', $method = '')
 {
     if (Mage::helper('core')->isModuleEnabled('VF_EasyAjax') && Mage::getSingleton('easyAjax/core')->isEasyAjax()) {
         Mage::getSingleton('easyAjax/message_storage')->addMessage($code, $type);
     }
     return parent::_factory($code, $type, $class, $method);
 }
Ejemplo n.º 2
0
 /**
  * (non-PHPdoc)
  * @see app/code/core/Mage/Core/Model/Mage_Core_Model_Message#_factory($code, $type, $class, $method)
  */
 protected function _factory($code, $type, $class = '', $method = '')
 {
     // check if a console method is requested
     if (strtolower($type == self::CONSOLE)) {
         $message = new Faett_Manager_Model_Message_Console($code);
         $message->setClass($class);
         $message->setMethod($method);
         return $message;
     }
     // call the parent factory method if not a console method
     return parent::_factory($code, $type, $class, $method);
 }
Ejemplo n.º 3
0
 /**
  * @param Mage_Core_Model_Message $message 
  */
 protected function _dispatchCheckoutMsg($message)
 {
     //Mage::helper('rewards/debug')->noticeBacktrace("Adding msg with _dispatchCheckoutMsg: ". $message->getText());
     $message->setIdentifier('TBT_Rewards_Model_Observer_Sales_Order_Save_After_Create(pending points)');
     Mage::getSingleton('core/session')->addMessage($message);
     return $this;
 }