| OXID eShop CE
    4.9.7
    | 
 Inheritance diagram for oxErpGenImport:
 Inheritance diagram for oxErpGenImport: Collaboration diagram for oxErpGenImport:
 Collaboration diagram for oxErpGenImport:| Public Member Functions | |
| __call ($sMethod, $aArgs) | |
| __construct () | |
| getInstanceOfType ($sType) | |
| getImportObject ($sType) | |
| setImportTypePrefix ($sType) | |
| getImportObjectsList () | |
| init ($sUserName, $sPassword, $iShopID=1, $iLanguage=0) | |
| setCsvFileFieldsOrder ($aCsvFields) | |
| setCsvContainsHeader ($blCsvContainsHeader) | |
| getTotalImportedRowsNumber () | |
| doImport ($sPath=null, $sUserName=null, $sUserPassword=null, $sShopId=null, $sShopLanguage=null) | |
|  Public Member Functions inherited from oxErpCsv | |
| loadSessionData ($sSessionID) | |
| import () | |
| getImportData ($iIdx=null) | |
| getImportedRowCount () | |
| setImportedIds ($key) | |
|  Public Member Functions inherited from oxERPBase | |
| getStatistics () | |
| getSessionID () | |
| exportType ($sType, $sWhere=null, $iStart=null, $iCount=null, $sSortFieldName=null, $sSortType=null) | |
| createPluginObject ($sId) | |
| Protected Member Functions | |
| _setDbLayerVersion () | |
| _modifyData ($aData, $oType) | |
| _mapFields ($aData, $oType) | |
| _getImportType (&$aData) | |
| _getImportMode ($aData) | |
| _getCsvFieldsTerminator () | |
| _getCsvFieldsEncolser () | |
|  Protected Member Functions inherited from oxErpCsv | |
| _beforeExport ($sType) | |
| _afterExport ($sType) | |
| _csvTextConvert ($sText, $blMode) | |
| _beforeImport () | |
| _afterImport () | |
| _checkIDField ($sID) | |
| _getInstanceOfType ($sType) | |
| _importArticle (oxERPType $oType, $aRow) | |
| _importAccessoire (oxERPType $oType, $aRow) | |
| _importArticle2Action (oxERPType $oType, $aRow) | |
| _importArticle2Category (oxERPType $oType, $aRow) | |
| _importMainArticle2Category (oxERPType $oType, $aRow) | |
| _importCategory (oxERPType $oType, $aRow) | |
| _importCrossselling (oxERPType $oType, $aRow) | |
| _importScaleprice (oxERPType $oType, $aRow) | |
| _importOrder (oxERPType $oType, $aRow) | |
| _importOrderArticle (oxERPType $oType, $aRow) | |
| _importOrderStatus (oxERPType $oType, $aRow) | |
| _importUser (oxERPType $oType, $aRow) | |
| _importVendor (oxERPType $oType, $aRow) | |
| _importArtextends (oxERPType $oType, $aRow) | |
| _importCountry (oxERPType $oType, $aRow) | |
| _importArticleStock (oxERPType $oType, $aRow) | |
|  Protected Member Functions inherited from oxERPBase | |
| _export ($sType, $sWhere, $iStart=null, $iCount=null, $sSortFieldName=null, $sSortType=null) | |
| _outputMappingArray ($sTable) | |
| _getKeyID ($oType, $aData) | |
| _resetIdx () | |
| _nextIdx () | |
| _checkAccess ($oType, $blWrite, $sOxid=null) | |
| _importOne () | |
| _save (oxERPType &$oType, $aData, $blAllowCustomShopId=false) | |
| Protected Attributes | |
| $_aObjects | |
| $_aCsvFileFieldsOrder = array() | |
| $_blCsvContainsHeader = null | |
| $_sDefaultStringTerminator = ";" | |
| $_sDefaultStringEncloser = '"' | |
|  Protected Attributes inherited from oxErpCsv | |
| $_aSupportedVersions = array("0.1", "1.0", "1.1", "2.0") | |
| $_aCsv2BaseVersionsMap = array("0.1" => "1", "1.0" => "1", "1.1" => "1.1", "2.0" => "2") | |
| $_sCurrVersion = "" | |
| $_aData = array() | |
| $_iRetryRows = 0 | |
| $_sReturn | |
| $_sPath | |
| $_aImportedActions2Article = array() | |
| $_aImportedObject2Category = array() | |
| $_aImportedAccessoire2Article = array() | |
|  Protected Attributes inherited from oxERPBase | |
| $_blInit = false | |
| $_iLanguage = null | |
| $_sUserID = null | |
| $_sSID = null | |
| $_aImportedIds = array() | |
| $_iImportedRowCount = 0 | |
| Additional Inherited Members | |
|  Static Public Member Functions inherited from oxERPBase | |
| static | getRequestedVersion () | 
| static | getUsedDbFieldsVersion () | 
| static | setVersion ($sDbLayerVersion= '') | 
|  Public Attributes inherited from oxERPBase | |
| const | ERROR_USER_WRONG = "ERROR: Could not login" | 
| const | ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!" | 
| const | ERROR_USER_EXISTS = "ERROR: User already exists" | 
| const | ERROR_NO_INIT = "Init not executed, Access denied!" | 
| const | ERROR_DELETE_NO_EMPTY_CATEGORY = "Only empty category can be deleated" | 
| const | ERROR_OBJECT_NOT_EXISTING = "Object does not exist" | 
| const | ERROR_ERP_VERSION_NOT_SUPPORTED_BY_SHOP = "ERROR: shop does not support requested ERP version." | 
| const | ERROR_SHOP_VERSION_NOT_SUPPORTED_BY_ERP = "ERROR: ERP does not support current shop version." | 
| $_aStatistics = array() | |
| $_iIdx = 0 | |
|  Static Public Attributes inherited from oxERPBase | |
| static | $MODE_IMPORT = "Import" | 
| static | $MODE_DELETE = "Delete" | 
|  Static Protected Member Functions inherited from oxERPBase | |
| static | _checkShopVersion () | 
| static | _checkRequestedVersion () | 
|  Static Protected Attributes inherited from oxERPBase | |
| static | $_sRequestedVersion = '' | 
| static | $_aDbLayer2ShopDbVersions | 
Class handeling csv import
Definition at line 7 of file oxerpgenimport.php.
| oxErpGenImport::__construct | ( | ) | 
| oxErpGenImport::__call | ( | $sMethod, | |
| $aArgs | |||
| ) | 
Only used for convenience in UNIT tests by doing so we avoid writing extended classes for testing protected or private methods
| string | $sMethod | Methods name | 
| array | $aArgs | Argument array | 
| oxSystemComponentException | Throws an exception if the called method does not exist or is not accessable in current class | 
Reimplemented from oxERPBase.
Definition at line 69 of file oxerpgenimport.php.
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
Gets import mode
| array | $aData | CSV data | 
Reimplemented from oxErpCsv.
Definition at line 185 of file oxerpgenimport.php.
| 
 | protected | 
Gets import object type according type prefix
| array | &$aData | CSV data | 
| Exeption | if no such import type prefix | 
Reimplemented from oxErpCsv.
Definition at line 167 of file oxerpgenimport.php.
| 
 | protected | 
Maps numeric array to assoc. Array
| array | $aData | numeric indices | 
| object | $oType | object type | 
Definition at line 139 of file oxerpgenimport.php.
| 
 | protected | 
Modyfies data befor import. Calls method for object fields and csv data mapping.
| array | $aData | CSV data | 
| object | $oType | object type | 
Reimplemented from oxErpCsv.
Definition at line 126 of file oxerpgenimport.php.
| 
 | protected | 
Setting DB layer version to latest
Definition at line 110 of file oxerpgenimport.php.
| oxErpGenImport::doImport | ( | $sPath = null, | |
| $sUserName = null, | |||
| $sUserPassword = null, | |||
| $sShopId = null, | |||
| $sShopLanguage = null | |||
| ) | 
Main import method, whole import of all types via a given csv file is done here
| string | $sPath | full path of the CSV file. | 
| string | $sUserName | user name | 
| string | $sUserPassword | password | 
| integer | $sShopId | shop ID | 
| integer | $sShopLanguage | language ID | 
Definition at line 310 of file oxerpgenimport.php.
| oxErpGenImport::getImportObject | ( | $sType | ) | 
Get imort object according import type
| string | $sType | import object type | 
Definition at line 197 of file oxerpgenimport.php.
| oxErpGenImport::getImportObjectsList | ( | ) | 
| oxErpGenImport::getInstanceOfType | ( | $sType | ) | 
Get instance of type
| string | $sType | instance type | 
| Exeption | type not supported | 
Definition at line 102 of file oxerpgenimport.php.
| oxErpGenImport::getTotalImportedRowsNumber | ( | ) | 
| oxErpGenImport::init | ( | $sUserName, | |
| $sPassword, | |||
| $iShopID = 1, | |||
| $iLanguage = 0 | |||
| ) | 
Init ERP Framework parameters Creates Objects, checks Rights etc.
| mixed | $sUserName | user name | 
| mixed | $sPassword | password | 
| integer | $iShopID | shop ID | 
| integer | $iLanguage | language ID | 
Reimplemented from oxERPBase.
Definition at line 244 of file oxerpgenimport.php.
| oxErpGenImport::setCsvContainsHeader | ( | $blCsvContainsHeader | ) | 
Set if CSV file contains header row
| bool | $blCsvContainsHeader | has or not file header | 
Definition at line 283 of file oxerpgenimport.php.
| oxErpGenImport::setCsvFileFieldsOrder | ( | $aCsvFields | ) | 
Set CSV file comumns names
| array | $aCsvFields | CSV fields | 
Definition at line 273 of file oxerpgenimport.php.
| oxErpGenImport::setImportTypePrefix | ( | $sType | ) | 
Set import object type prefix
| string | $sType | import type prefix | 
Definition at line 213 of file oxerpgenimport.php.
| 
 | protected | 
Definition at line 35 of file oxerpgenimport.php.
| 
 | protected | 
Definition at line 15 of file oxerpgenimport.php.
| 
 | protected | 
Definition at line 42 of file oxerpgenimport.php.
| 
 | protected | 
Definition at line 56 of file oxerpgenimport.php.
| 
 | protected | 
Definition at line 49 of file oxerpgenimport.php.