16 class Customer extends \Magento\ImportExport\Model\Export\Entity\AbstractEav
44 'created_at' => [
'backend_type' =>
'datetime'],
45 'reward_update_notification' => [
'source_model' => \Magento\Eav\Model\Entity\Attribute\Source\Boolean::class],
46 'reward_warning_notification' => [
'source_model' => \Magento\Eav\Model\Entity\Attribute\Source\Boolean::class],
88 \
Magento\Framework\
App\Config\ScopeConfigInterface $scopeConfig,
92 \
Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
107 $this->_customerCollection = isset(
108 $data[
'customer_collection']
109 ) ?
$data[
'customer_collection'] : $customerColFactory->create();
111 $this->_initAttributeValues()->_initAttributeTypes()->_initStores()->_initWebsites(
true);
128 return $writer->getContents();
146 $validAttributeCodes = $this->_getExportAttributeCodes();
147 return array_merge($this->_permanentAttributes, $validAttributeCodes, [
'password']);
171 public function filterAttributeCollection(\
Magento\Framework\Data\Collection
$collection)
175 if (!empty($this->_attributeOverrides[
$attribute->getAttributeCode()])) {
178 if (isset(
$data[
'options_method']) && method_exists($this,
$data[
'options_method'])) {
179 $data[
'filter_options'] = $this->{
$data[
'options_method']}();
181 $attribute->addData(
$data);
__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, array $data=[])
_prepareEntityCollection(AbstractCollection $collection)
getOverriddenAttributes()
_addAttributeValuesToRow(\Magento\Framework\Model\AbstractModel $item, array $row=[])
_exportCollectionByPages(\Magento\Framework\Data\Collection\AbstractDb $collection)
const ATTRIBUTE_COLLECTION_NAME