Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_ImportExport_Adminhtml_ExportController
  • Mage_ImportExport_Adminhtml_ImportController
  • Mage_ImportExport_Block_Adminhtml_Export_Edit
  • Mage_ImportExport_Block_Adminhtml_Export_Edit_Form
  • Mage_ImportExport_Block_Adminhtml_Export_Filter
  • Mage_ImportExport_Block_Adminhtml_Import_Edit
  • Mage_ImportExport_Block_Adminhtml_Import_Edit_Form
  • Mage_ImportExport_Block_Adminhtml_Import_Frame_Result
  • Mage_ImportExport_Helper_Data
  • Mage_ImportExport_Model_Abstract
  • Mage_ImportExport_Model_Config
  • Mage_ImportExport_Model_Export
  • Mage_ImportExport_Model_Export_Adapter_Abstract
  • Mage_ImportExport_Model_Export_Adapter_Csv
  • Mage_ImportExport_Model_Export_Entity_Abstract
  • Mage_ImportExport_Model_Export_Entity_Customer
  • Mage_ImportExport_Model_Export_Entity_Product
  • Mage_ImportExport_Model_Export_Entity_Product_Type_Abstract
  • Mage_ImportExport_Model_Export_Entity_Product_Type_Configurable
  • Mage_ImportExport_Model_Export_Entity_Product_Type_Grouped
  • Mage_ImportExport_Model_Export_Entity_Product_Type_Simple
  • Mage_ImportExport_Model_Import
  • Mage_ImportExport_Model_Import_Adapter
  • Mage_ImportExport_Model_Import_Adapter_Abstract
  • Mage_ImportExport_Model_Import_Adapter_Csv
  • Mage_ImportExport_Model_Import_Entity_Abstract
  • Mage_ImportExport_Model_Import_Entity_Customer
  • Mage_ImportExport_Model_Import_Entity_Customer_Address
  • Mage_ImportExport_Model_Import_Entity_Product
  • Mage_ImportExport_Model_Import_Entity_Product_Type_Abstract
  • Mage_ImportExport_Model_Import_Entity_Product_Type_Configurable
  • Mage_ImportExport_Model_Import_Entity_Product_Type_Grouped
  • Mage_ImportExport_Model_Import_Entity_Product_Type_Simple
  • Mage_ImportExport_Model_Import_Proxy_Product
  • Mage_ImportExport_Model_Import_Proxy_Product_Resource
  • Mage_ImportExport_Model_Import_Uploader
  • Mage_ImportExport_Model_Mysql4_Import_Data
  • Mage_ImportExport_Model_Mysql4_Setup
  • Mage_ImportExport_Model_Resource_Import_Data
  • Mage_ImportExport_Model_Resource_Setup
  • Mage_ImportExport_Model_Source_Export_Entity
  • Mage_ImportExport_Model_Source_Export_Format
  • Mage_ImportExport_Model_Source_Import_Behavior
  • Mage_ImportExport_Model_Source_Import_Entity
  • Overview
  • Package
  • Class
  • Tree

Class Mage_ImportExport_Model_Import_Entity_Customer

Import entity customer model

Mage_ImportExport_Model_Import_Entity_Abstract
Extended by Mage_ImportExport_Model_Import_Entity_Customer
Package: Mage\ImportExport
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/ImportExport/Model/Import/Entity/Customer.php
Methods summary
public
# __construct( )

Constructor.

Constructor.

Overrides

Mage_ImportExport_Model_Import_Entity_Abstract::__construct()
protected Mage_ImportExport_Model_Import_Entity_Customer
# _deleteCustomers( )

Delete customers.

Delete customers.

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected boolean
# _importData( )

Save customer data to DB.

Save customer data to DB.

Returns

boolean
Result of operation.

Throws

Exception
protected Mage_ImportExport_Model_Import_Entity_Customer
# _initAttributes( )

Initialize customer attributes.

Initialize customer attributes.

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected Mage_ImportExport_Model_Import_Entity_Customer
# _initCustomerGroups( )

Initialize customer groups.

Initialize customer groups.

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected Mage_ImportExport_Model_Import_Entity_Customer
# _initCustomers( )

Initialize existent customers data.

Initialize existent customers data.

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected Mage_ImportExport_Model_Import_Entity_Customer
# _initStores( )

Initialize stores hash.

Initialize stores hash.

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected Mage_ImportExport_Model_Import_Entity_Customer
# _initWebsites( )

Initialize website values.

Initialize website values.

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected Mage_ImportExport_Model_Import_Entity_Customer
# _saveCustomers( )

Gather and save information about customer entities.

Gather and save information about customer entities.

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected Mage_ImportExport_Model_Import_Entity_Customer
# _saveCustomerAttributes( array $attributesData )

Save customer attributes.

Save customer attributes.

Parameters

$attributesData
array
$attributesData

Returns

Mage_ImportExport_Model_Import_Entity_Customer
protected Mage_ImportExport_Model_Import_Entity_Customer
# _saveCustomerEntity( array $entityRowsIn, array $entityRowsUp )

Update and insert data in entity table.

Update and insert data in entity table.

Parameters

$entityRowsIn
array
$entityRowsIn Row for insert
$entityRowsUp
array
$entityRowsUp Row for update

Returns

Mage_ImportExport_Model_Import_Entity_Customer
public string|null
# getCustomerId( string $email, string $websiteCode )

Get customer ID. Method tries to find ID from old and new customers. If it fails - it returns NULL.

Get customer ID. Method tries to find ID from old and new customers. If it fails - it returns NULL.

Parameters

$email
string
$email
$websiteCode
string
$websiteCode

Returns

string|null
public string
# getEntityTypeCode( )

EAV entity type code getter.

EAV entity type code getter.

Returns

string
public integer
# getRowScope( array $rowData )

Obtain scope of the row from row data.

Obtain scope of the row from row data.

Parameters

$rowData
array
$rowData

Returns

integer
public boolean
# isAttributeParticular( string $attrCode )

Is attribute contains particular data (not plain entity attribute).

Is attribute contains particular data (not plain entity attribute).

Parameters

$attrCode
string
$attrCode

Returns

boolean

Overrides

Mage_ImportExport_Model_Import_Entity_Abstract::isAttributeParticular()
public boolean
# validateRow( array $rowData, integer $rowNum )

Validate data row.

Validate data row.

Parameters

$rowData
array
$rowData
$rowNum
integer
$rowNum

Returns

boolean
Methods inherited from Mage_ImportExport_Model_Import_Entity_Abstract
_getSource(), _isRowScopeDefault(), _prepareRowForDb(), _saveValidatedBunches(), addMessageTemplate(), addRowError(), getAttributeOptions(), getBehavior(), getEntityTypeId(), getErrorMessages(), getErrorsCount(), getErrorsLimit(), getInvalidRowsCount(), getNotices(), getProcessedEntitiesCount(), getProcessedRowsCount(), getSource(), importData(), isAttributeValid(), isDataValid(), isImportAllowed(), isRowAllowedToImport(), setParameters(), setSource(), validateData()
Constants summary
integer BUNCH_SIZE 20
#

Size of bunch - part of entities to save in one step.

Size of bunch - part of entities to save in one step.

integer SCOPE_DEFAULT 1
#

Data row scopes.

Data row scopes.

integer SCOPE_ADDRESS -1
#
string COL_EMAIL 'email'
#

Permanent column names.

Permanent column names.

Names that begins with underscore is not an attribute. This name convention is for to avoid interference with same attribute name.

string COL_WEBSITE '_website'
#
string COL_STORE '_store'
#
string ERROR_INVALID_WEBSITE 'invalidWebsite'
#

Error codes.

Error codes.

string ERROR_INVALID_EMAIL 'invalidEmail'
#
string ERROR_DUPLICATE_EMAIL_SITE 'duplicateEmailSite'
#
string ERROR_EMAIL_IS_EMPTY 'emailIsEmpty'
#
string ERROR_ROW_IS_ORPHAN 'rowIsOrphan'
#
string ERROR_VALUE_IS_REQUIRED 'valueIsRequired'
#
string ERROR_INVALID_STORE 'invalidStore'
#
string ERROR_EMAIL_SITE_NOT_FOUND 'emailSiteNotFound'
#
string ERROR_PASSWORD_LENGTH 'passwordLength'
#
integer DEFAULT_GROUP_ID 1
#

Customer constants

Customer constants

integer MAX_PASSWD_LENGTH 6
#
Constants inherited from Mage_ImportExport_Model_Import_Entity_Abstract
DB_MAX_PACKET_COEFFICIENT, DB_MAX_PACKET_DATA, DB_MAX_TEXT_LENGTH, DB_MAX_VARCHAR_LENGTH
Properties summary
protected Mage_ImportExport_Model_Import_Entity_Customer_Address $_addressEntity
#

Customer address import entity model.

Customer address import entity model.

protected array $_attributes array()
#

Customer attributes parameters.

Customer attributes parameters.

[attr_code1] => array( 'options' => array(), 'type' => 'text', 'price', 'textarea', 'select', etc. 'id' => .. ), ...

protected boolean $_customerGlobal
#

Customer account sharing. TRUE - is global, FALSE - is per website.

Customer account sharing. TRUE - is global, FALSE - is per website.

protected array $_customerGroups array()
#

Customer groups ID-to-name.

Customer groups ID-to-name.

protected string $_entityTable
#

Customer entity DB table name.

Customer entity DB table name.

protected array $_ignoredAttributes array('website_id', 'store_id', 'default_billing', 'default_shipping')
#

Array of attribute codes which will be ignored in validation and import procedures. For example, when entity attribute has own validation and import procedures or just to deny this attribute processing.

Array of attribute codes which will be ignored in validation and import procedures. For example, when entity attribute has own validation and import procedures or just to deny this attribute processing.

protected array $_indexValueAttributes array('group_id')
#

Attributes with index (not label) value.

Attributes with index (not label) value.

protected array $_messageTemplates array( self::ERROR_INVALID_WEBSITE => 'Invalid value in Website column (website does not exists?)', self::ERROR_INVALID_EMAIL => 'E-mail is invalid', self::ERROR_DUPLICATE_EMAIL_SITE => 'E-mail is duplicated in import file', self::ERROR_EMAIL_IS_EMPTY => 'E-mail is not specified', self::ERROR_ROW_IS_ORPHAN => 'Orphan rows that will be skipped due default row errors', self::ERROR_VALUE_IS_REQUIRED => "Required attribute '%s' has an empty value", self::ERROR_INVALID_STORE => 'Invalid value in Store column (store does not exists?)', self::ERROR_EMAIL_SITE_NOT_FOUND => 'E-mail and website combination is not found', self::ERROR_PASSWORD_LENGTH => 'Invalid password length' )
#

Validation failure message template definitions

Validation failure message template definitions

protected array $_newCustomers array()
#

Dry-runned customers information from import file.

Dry-runned customers information from import file.

protected array $_oldCustomers array()
#

Existing customers information. In form of:

Existing customers information. In form of:

[customer e-mail] => array( [website code 1] => customer_id 1, [website code 2] => customer_id 2, ... => ... , [website code n] => customer_id n, )

protected array $_particularAttributes array(self::COL_WEBSITE, self::COL_STORE)
#

Column names that holds values with particular meaning.

Column names that holds values with particular meaning.

protected array $_permanentAttributes array(self::COL_EMAIL, self::COL_WEBSITE)
#

Permanent entity columns.

Permanent entity columns.

protected array $_storeCodeToId array()
#

All stores code-ID pairs.

All stores code-ID pairs.

protected array $_websiteCodeToId array()
#

Website code-to-ID

Website code-to-ID

protected array $_websiteIdToCode array()
#

Website ID-to-code

Website ID-to-code

Properties inherited from Mage_ImportExport_Model_Import_Entity_Abstract
$_connection, $_dataSourceModel, $_dataValidated, $_entityTypeId, $_errors, $_errorsCount, $_errorsLimit, $_importAllowed, $_invalidRows, $_notices, $_parameters, $_processedEntitiesCount, $_processedRowsCount, $_rowsToSkip, $_source, $_uniqueAttributes, $_validatedRows
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0