/** * 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(); }
/** * 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); }
/** * Constructor. * * @return void */ public function __construct() { parent::__construct(); $this->_initWebsites()->_initStores()->_initCategories()->_initAttributes(); $this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel(); }
/** * 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(); }
/** * 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(); }