Definition at line 7 of file oxerpgenimport.php.
Public Member Functions | |
__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) | |
Protected Member Functions | |
_setDbLayerVersion () | |
_modifyData ($aData, $oType) | |
_mapFields ($aData, $oType) | |
_getImportType (&$aData) | |
_getImportMode ($aData) | |
Protected Attributes | |
$_aObjects | |
$_aCsvFileFieldsOrder = array() | |
$_blCsvContainsHeader = null |
oxErpGenImport.__construct | ( | ) |
oxErpGenImport.getInstanceOfType | ( | $ | sType | ) |
Get instance of type
string | $sType |
Definition at line 60 of file oxerpgenimport.php.
oxErpGenImport._setDbLayerVersion | ( | ) | [protected] |
oxErpGenImport._modifyData | ( | $ | aData, | |
$ | oType | |||
) | [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 86 of file oxerpgenimport.php.
oxErpGenImport._mapFields | ( | $ | aData, | |
$ | oType | |||
) | [protected] |
Maps numeric array to assoc. Array
array | $aData numeric indices | |
object | $oType object type |
Reimplemented from oxErpCsv.
Definition at line 99 of file oxerpgenimport.php.
oxErpGenImport._getImportType | ( | &$ | aData | ) | [protected] |
Gets import object type according type prefix
array | $aData CSV data |
Exeption |
Reimplemented from oxErpCsv.
Definition at line 120 of file oxerpgenimport.php.
oxErpGenImport._getImportMode | ( | $ | aData | ) | [protected] |
Gets import mode
Reimplemented from oxErpCsv.
Definition at line 136 of file oxerpgenimport.php.
oxErpGenImport.getImportObject | ( | $ | sType | ) |
Get imort object according import type
string | $sType import object type |
Definition at line 148 of file oxerpgenimport.php.
oxErpGenImport.setImportTypePrefix | ( | $ | sType | ) |
Set import object type prefix
string | $sType |
Definition at line 165 of file oxerpgenimport.php.
oxErpGenImport.getImportObjectsList | ( | ) |
Get allowed for import objects list
Definition at line 175 of file oxerpgenimport.php.
oxErpGenImport.init | ( | $ | sUserName, | |
$ | sPassword, | |||
$ | iShopID = 1 , |
|||
$ | iLanguage = 0 | |||
) |
Init ERP Framework parameters Creates Objects, checks Rights etc.
mixed | $sUserName | |
mixed | $sPassword | |
integer | $iShopID | |
integer | $iLanguage |
Reimplemented from oxERPBase.
Definition at line 195 of file oxerpgenimport.php.
oxErpGenImport.setCsvFileFieldsOrder | ( | $ | aCsvFields | ) |
Set CSV file comumns names
array | $aCsvFields |
Definition at line 226 of file oxerpgenimport.php.
oxErpGenImport.setCsvContainsHeader | ( | $ | blCsvContainsHeader | ) |
Set if CSV file contains header row
bool | $blCsvContainsHeader has or not file header |
Definition at line 238 of file oxerpgenimport.php.
oxErpGenImport.getTotalImportedRowsNumber | ( | ) |
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. |
Definition at line 268 of file oxerpgenimport.php.
oxErpGenImport.$_aObjects [protected] |
Initial value:
array ( 'A' => 'article', 'K' => 'category', 'H' => 'vendor', 'C' => 'crossselling', 'Z' => 'accessoire', 'T' => 'article2category', 'I' => 'article2action', 'P' => 'scaleprice', 'U' => 'user', 'O' => 'order', 'R' => 'orderarticle', 'N' => 'country', 'Y' => 'artextends', )
Reimplemented from oxErpCsv.
Definition at line 14 of file oxerpgenimport.php.
oxErpGenImport.$_aCsvFileFieldsOrder = array() [protected] |
Definition at line 34 of file oxerpgenimport.php.
oxErpGenImport.$_blCsvContainsHeader = null [protected] |
Definition at line 41 of file oxerpgenimport.php.