16 class Address extends \Magento\ImportExport\Model\Export\Entity\AbstractEav
82 self::COLUMN_NAME_DEFAULT_BILLING =>
'default_billing',
83 self::COLUMN_NAME_DEFAULT_SHIPPING =>
'default_shipping',
137 \
Magento\Framework\
App\Config\ScopeConfigInterface $scopeConfig,
141 \
Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
144 \
Magento\CustomerImportExport\Model\Export\CustomerFactory $eavCustomerFactory,
158 $this->_customerCollection = isset(
159 $data[
'customer_collection']
160 ) ?
$data[
'customer_collection'] : $customerColFactory->create();
162 $this->_customerEntity = isset(
163 $data[
'customer_entity']
164 ) ?
$data[
'customer_entity'] : $eavCustomerFactory->create();
166 $this->_addressCollection = isset(
167 $data[
'address_collection']
168 ) ?
$data[
'address_collection'] : $addressColFactory->create();
170 $this->_initAttributeValues()->_initAttributeTypes()->_initWebsites(
true);
181 if (empty($this->_customers)) {
183 $this->_customerCollection->addAttributeToSelect(self::$_defaultAddressAttributeMapping);
185 $this->_customerCollection = $this->_customerEntity->filterEntityCollection($this->_customerCollection);
192 $this->_byPagesIterator->iterate($this->_customerCollection, $this->_pageSize, [$addCustomer]);
205 $this->_permanentAttributes,
206 $this->_getExportAttributeCodes(),
207 array_keys(self::$_defaultAddressAttributeMapping)
237 return $this->
getWriter()->getContents();
254 foreach (self::$_defaultAddressAttributeMapping as $columnName =>
$attributeCode) {
256 $row[$columnName] = 1;
278 $this->_customerEntity->setParameters($parameters);
281 return parent::setParameters($parameters);
const COLUMN_NAME_DEFAULT_BILLING
const COLUMN_NAME_DEFAULT_SHIPPING
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\ImportExport\Model\Export\Factory $collectionFactory, \Magento\ImportExport\Model\ResourceModel\CollectionByPagesIteratorFactory $resourceColFactory, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Eav\Model\Config $eavConfig, \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerColFactory, \Magento\CustomerImportExport\Model\Export\CustomerFactory $eavCustomerFactory, \Magento\Customer\Model\ResourceModel\Address\CollectionFactory $addressColFactory, array $data=[])
static $_defaultAddressAttributeMapping
const ATTRIBUTE_COLLECTION_NAME
setParameters(array $parameters)
_prepareEntityCollection(AbstractCollection $collection)
_addAttributeValuesToRow(\Magento\Framework\Model\AbstractModel $item, array $row=[])
_exportCollectionByPages(\Magento\Framework\Data\Collection\AbstractDb $collection)