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); }
/** * (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); }