示例#1
0
 /**
  * Sets the proper data source model and makes sure dropdown options are imported.
  *
  * @return void
  */
 public function __construct()
 {
     $entityType = Mage::getSingleton('eav/config')->getEntityType($this->getEntityTypeCode());
     $this->_entityTypeId = $entityType->getEntityTypeId();
     $this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel();
     $this->_connection = Mage::getSingleton('core/resource')->getConnection('write');
     $this->_importAttributes()->_initWebsites()->_initStores()->_initAttributeSets()->_initTypeModels()->_initCategories()->_initSkus()->_initCustomerGroups()->_initOldData();
 }
示例#2
0
 /**
  * Sets the proper data source model and adress model.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel();
     $this->_addressEntity = Mage::getModel('api_import/import_entity_customer_address', $this);
 }
示例#3
0
 /**
  * Constructor.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->_initWebsites()->_initStores()->_initCategories()->_initAttributes();
     $this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel();
 }
示例#4
0
 /**
  * Constructor.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->_initWebsites()->_initStores()->_initCategories()->_initAttributes();
     /* @var $categoryResource Mage_Catalog_Model_Resource_Category */
     $categoryResource = Mage::getModel('catalog/category')->getResource();
     $this->_entityTable = $categoryResource->getEntityTable();
     $this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel();
 }
示例#5
0
 /**
  * Makes sure address model is using the proper data source model.
  *
  * @param Mage_ImportExport_Model_Import_Entity_Customer $customer
  */
 public function __construct(Mage_ImportExport_Model_Import_Entity_Customer $customer)
 {
     parent::__construct($customer);
     $this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel();
 }