예제 #1
0
 /**
  * Adds events before and after importing.
  *
  * @return boolean
  */
 public function _importData()
 {
     Mage::dispatchEvent($this->_eventPrefix . '_before_import', array('entity_model' => $this, 'data_source_model' => $this->_dataSourceModel, 'uploader' => $this->_getUploader()));
     // Do the actual import.
     parent::_importData();
     Mage::dispatchEvent($this->_eventPrefix . '_after_import', array('entity_model' => $this, 'entities' => $this->_newSku));
     return $this->_newSku;
 }
 protected function _importData()
 {
     $result = parent::_importData();
     $resource = Mage::getSingleton('core/resource');
     $this->_connection->query("DELETE FROM `{$resource->getTableName('core_resource')}` WHERE `code` = 'customoptions_setup';");
     return $result;
 }
예제 #3
0
 /**
  * Adds events before and after importing.
  *
  * @return boolean
  */
 public function _importData()
 {
     Mage::dispatchEvent($this->_eventPrefix . '_before_import', array('entity_model' => $this, 'data_source_model' => $this->_dataSourceModel));
     $result = parent::_importData();
     Mage::dispatchEvent($this->_eventPrefix . '_after_import', array('entity_model' => $this, 'entities' => $this->_newSku));
     return $result;
 }