Class Mage_ImportExport_Model_Import_Entity_Abstract
Import entity abstract model
Direct known subclasses
Mage_ImportExport_Model_Import_Entity_Customer, Mage_ImportExport_Model_Import_Entity_Customer_Address, Mage_ImportExport_Model_Import_Entity_ProductPackage: 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/Abstract.php
public
|
|
protected
|
|
abstract protected
boolean
|
|
protected
boolean
|
#
_isRowScopeDefault( array $rowData )
Returns boolean TRUE if row scope is default (fundamental) scope. |
protected
array
|
|
protected
|
|
public
|
#
addRowError( string $errorCode, integer $errorRowNum, string $colName = null )
Add error with corresponding current data source row number. |
public
|
#
addMessageTemplate( string $errorCode, string $message )
Add message template for specific error code from outside. |
public
array
|
#
getAttributeOptions(
Returns attributes all values in label-value or value-value pairs form. Labels are lower-cased. |
public
string
|
|
abstract public
string
|
|
public
integer
|
|
public
array
|
#
getErrorMessages( )
Returns error information grouped by error types and translated (if possible). |
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
array
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
boolean
|
|
public
boolean
|
#
isAttributeParticular( string $attrCode )
Is attribute contains particular data (not plain entity attribute). |
public
boolean
|
#
isAttributeValid( string $attrCode, array $attrParams, array $rowData, integer $rowNum )
Check one attribute. Can be overridden in child. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
isRowAllowedToImport( array $rowData, integer $rowNum )
Returns TRUE if row is valid and not in skipped rows array. |
abstract public
boolean
|
|
public
|
#
setParameters( array $params )
Set data from outside to change behavior. I.e. for setting some default parameters etc. |
public
|
|
public
|
integer |
DB_MAX_PACKET_COEFFICIENT
|
900000 |
#
Database constants |
integer |
DB_MAX_PACKET_DATA
|
1048576 |
|
integer |
DB_MAX_VARCHAR_LENGTH
|
256 |
|
integer |
DB_MAX_TEXT_LENGTH
|
65536 |
protected
Varien_Adapter_Interface
|
$_connection |
|
#
DB connection. |
protected
boolean
|
$_dataValidated | false |
#
Has data process validation done? |
protected
|
$_dataSourceModel |
|
#
DB data source model. |
protected
integer
|
$_entityTypeId |
|
#
Entity type id. |
protected
array
|
$_errors | array() |
#
Error codes with arrays of corresponding row numbers. |
protected
integer
|
$_errorsCount | 0 |
#
Error counter. |
protected
integer
|
$_errorsLimit | 100 |
#
Limit of errors after which pre-processing will exit. |
protected
boolean
|
$_importAllowed | true |
#
Flag to disable import. |
protected
array
|
$_indexValueAttributes | array() |
#
Attributes with index (not label) value. |
protected
array
|
$_invalidRows | array() |
#
Array of invalid rows numbers. |
protected
array
|
$_messageTemplates | array() |
#
Validation failure message template definitions. |
protected
array
|
$_notices | array() |
#
Notice messages. |
protected
array
|
$_parameters | array() |
#
Entity model parameters. |
protected
array
|
$_particularAttributes | array() |
#
Column names that holds values with particular meaning. |
protected
array
|
$_permanentAttributes | array() |
#
Permanent entity columns. |
protected
integer
|
$_processedEntitiesCount | 0 |
#
Number of entities processed by validation. |
protected
integer
|
$_processedRowsCount | 0 |
#
Number of rows processed by validation. |
protected
array
|
$_rowsToSkip | array() |
#
Rows to skip. Valid rows but we have some reasons to skip them. |
protected
array
|
$_validatedRows | array() |
#
Array of numbers of validated rows as keys and boolean TRUE as values. |
protected
|
$_source |
|
#
Source model. |
protected
array
|
$_uniqueAttributes | array() |
#
Array of unique attributes |