oxErpCsv Class Reference

Inheritance diagram for oxErpCsv:

Inheritance graph
[legend]
Collaboration diagram for oxErpCsv:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class handeling csv import

Definition at line 6 of file oxerpcsv.php.


Public Member Functions

 loadSessionData ($sSessionID)
 Import ()
 getImportData ()

Protected Member Functions

 _beforeExport ($sType)
 _afterExport ($sType)
 _getImportType (&$aData)
 _getImportMode ($Data)
 _modifyData ($aData, $oType)
 _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 Attributes

 $_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()

Private Member Functions

 getOldOrderArticleFieldList ()
 getOldOrderFielsList ()

Member Function Documentation

oxErpCsv._beforeExport ( sType  )  [protected]

Reimplemented from oxERPBase.

Definition at line 26 of file oxerpcsv.php.

oxErpCsv._afterExport ( sType  )  [protected]

Reimplemented from oxERPBase.

Definition at line 27 of file oxerpcsv.php.

oxErpCsv._getImportType ( &$  aData  )  [protected]

Reimplemented from oxERPBase.

Reimplemented in oxErpGenImport.

Definition at line 28 of file oxerpcsv.php.

oxErpCsv._getImportMode ( Data  )  [protected]

Reimplemented from oxERPBase.

Reimplemented in oxErpGenImport.

Definition at line 29 of file oxerpcsv.php.

oxErpCsv._modifyData ( aData,
oType 
) [protected]

Reimplemented from oxERPBase.

Reimplemented in oxErpGenImport.

Definition at line 30 of file oxerpcsv.php.

oxErpCsv.loadSessionData ( sSessionID  ) 

oxERPBase.loadSessionData()

different handeling for SOAP request and CSV usage (V0.1)

Parameters:
string $sSessionID

Reimplemented from oxERPBase.

Definition at line 31 of file oxerpcsv.php.

oxErpCsv._csvTextConvert ( sText,
blMode 
) [protected]

parses and replaces special chars

Parameters:
string $sText input text
bool $blMode true = Text2CSV, false = CSV2Text
Returns:
string

Definition at line 41 of file oxerpcsv.php.

oxErpCsv.Import (  ) 

imports all data set up before

Reimplemented from oxERPBase.

Definition at line 54 of file oxerpcsv.php.

oxErpCsv._beforeImport (  )  [protected]

Reimplemented from oxERPBase.

Definition at line 65 of file oxerpcsv.php.

oxErpCsv._afterImport (  )  [protected]

Reimplemented from oxERPBase.

Definition at line 75 of file oxerpcsv.php.

oxErpCsv.getImportData (  ) 

Reimplemented from oxERPBase.

Definition at line 98 of file oxerpcsv.php.

oxErpCsv.getOldOrderArticleFieldList (  )  [private]

due to compatibility reasons, the field list of V0.1

Returns:
array

Definition at line 108 of file oxerpcsv.php.

oxErpCsv.getOldOrderFielsList (  )  [private]

due to compatibility reasons, the field list of V0.1

Returns:
array

Definition at line 139 of file oxerpcsv.php.

oxErpCsv._checkIDField ( sID  )  [protected]

Definition at line 198 of file oxerpcsv.php.

oxErpCsv._getInstanceOfType ( sType  )  [protected]

method overridden to allow olf Order and OrderArticle types

Parameters:
string $sType
Returns:
object

Reimplemented from oxERPBase.

Definition at line 213 of file oxerpcsv.php.

oxErpCsv._ImportArticle ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 249 of file oxerpcsv.php.

oxErpCsv._ImportAccessoire ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 271 of file oxerpcsv.php.

oxErpCsv._ImportArticle2Action ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 285 of file oxerpcsv.php.

oxErpCsv._ImportArticle2Category ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 301 of file oxerpcsv.php.

oxErpCsv._ImportMainArticle2Category ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 316 of file oxerpcsv.php.

oxErpCsv._ImportCategory ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 336 of file oxerpcsv.php.

oxErpCsv._ImportCrossselling ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 343 of file oxerpcsv.php.

oxErpCsv._ImportScaleprice ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 359 of file oxerpcsv.php.

oxErpCsv._ImportOrder ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 366 of file oxerpcsv.php.

oxErpCsv._ImportOrderArticle ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 374 of file oxerpcsv.php.

oxErpCsv._ImportOrderStatus ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 381 of file oxerpcsv.php.

oxErpCsv._ImportUser ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 411 of file oxerpcsv.php.

oxErpCsv._ImportVendor ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 435 of file oxerpcsv.php.

oxErpCsv._ImportArtextends ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 442 of file oxerpcsv.php.

oxErpCsv._ImportCountry ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 450 of file oxerpcsv.php.

oxErpCsv._ImportArticleStock ( oxERPType &$  oType,
aRow 
) [protected]

Definition at line 456 of file oxerpcsv.php.


Member Data Documentation

oxErpCsv.$_aSupportedVersions = array("0.1", "1.0", "1.1", "2.0") [protected]

Definition at line 8 of file oxerpcsv.php.

oxErpCsv.$_aCsv2BaseVersionsMap = array("0.1" => "1", "1.0" => "1", "1.1"=>"1.1", "2.0" => "2") [protected]

Definition at line 9 of file oxerpcsv.php.

oxErpCsv.$_sCurrVersion = "" [protected]

Definition at line 12 of file oxerpcsv.php.

oxErpCsv.$_aData = array() [protected]

Definition at line 14 of file oxerpcsv.php.

oxErpCsv.$_iRetryRows = 0 [protected]

Definition at line 16 of file oxerpcsv.php.

oxErpCsv.$_sReturn [protected]

Definition at line 18 of file oxerpcsv.php.

oxErpCsv.$_sPath [protected]

Definition at line 20 of file oxerpcsv.php.

oxErpCsv.$_aImportedActions2Article = array() [protected]

Definition at line 22 of file oxerpcsv.php.

oxErpCsv.$_aImportedObject2Category = array() [protected]

Definition at line 23 of file oxerpcsv.php.

oxErpCsv.$_aImportedAccessoire2Article = array() [protected]

Definition at line 24 of file oxerpcsv.php.


The documentation for this class was generated from the following file:

Generated on Tue Apr 21 15:49:24 2009 for OXID eShop CE by  doxygen 1.5.5