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

Before import event (abstract function)

Parameters:
string $sType import type
Returns:
null

Reimplemented from oxERPBase.

Definition at line 75 of file oxerpcsv.php.

oxErpCsv._afterExport ( sType  )  [protected]

After import event (abstract function)

Parameters:
string $sType import type
Returns:
null

Reimplemented from oxERPBase.

Definition at line 86 of file oxerpcsv.php.

oxErpCsv._getImportType ( &$  aData  )  [protected]

Import type getter (abstract function)

Parameters:
array &$aData import data
Returns:
null

Reimplemented from oxERPBase.

Reimplemented in oxErpGenImport.

Definition at line 97 of file oxerpcsv.php.

oxErpCsv._getImportMode ( aData  )  [protected]

Import mode getter (abstract function)

Parameters:
array $aData import data
Returns:
null

Reimplemented from oxERPBase.

Reimplemented in oxErpGenImport.

Definition at line 108 of file oxerpcsv.php.

oxErpCsv._modifyData ( aData,
oType 
) [protected]

Data modifier (abstract function)

Parameters:
object $aData data to modify
object $oType type object
Returns:
null

Reimplemented from oxERPBase.

Reimplemented in oxErpGenImport.

Definition at line 120 of file oxerpcsv.php.

oxErpCsv.loadSessionData ( sSessionID  ) 

Session loader (abstract function)

Parameters:
object $sSessionID session identifier
Returns:
null

Reimplemented from oxERPBase.

Definition at line 131 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 143 of file oxerpcsv.php.

oxErpCsv.import (  ) 

Performs import action

Returns:
null

Reimplemented from oxERPBase.

Definition at line 162 of file oxerpcsv.php.

oxErpCsv._beforeImport (  )  [protected]

Performs before import actions

Returns:
null

Reimplemented from oxERPBase.

Definition at line 176 of file oxerpcsv.php.

oxErpCsv._afterImport (  )  [protected]

Performs after import actions

Returns:
bool

Reimplemented from oxERPBase.

Definition at line 192 of file oxerpcsv.php.

oxErpCsv.getImportData (  ) 

Returns import data cor current index

Returns:
mixed

Reimplemented from oxERPBase.

Definition at line 221 of file oxerpcsv.php.

oxErpCsv.getOldOrderArticleFieldList (  )  [private]

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

Returns:
array

Definition at line 232 of file oxerpcsv.php.

oxErpCsv.getOldOrderFielsList (  )  [private]

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

Returns:
array

Definition at line 264 of file oxerpcsv.php.

oxErpCsv._checkIDField ( sID  )  [protected]

Checks if id field is valid

Parameters:
string $sID field check id
Returns:
null

Definition at line 330 of file oxerpcsv.php.

oxErpCsv._getInstanceOfType ( sType  )  [protected]

method overridden to allow olf Order and OrderArticle types

Parameters:
string $sType instance type
Returns:
object

Reimplemented from oxERPBase.

Definition at line 346 of file oxerpcsv.php.

oxErpCsv._importArticle ( oxERPType oType,
aRow 
) [protected]

Imports article. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 386 of file oxerpcsv.php.

oxErpCsv._importAccessoire ( oxERPType oType,
aRow 
) [protected]

Imports accessorie. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 413 of file oxerpcsv.php.

oxErpCsv._importArticle2Action ( oxERPType oType,
aRow 
) [protected]

Imports article 2 action relation. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 435 of file oxerpcsv.php.

oxErpCsv._importArticle2Category ( oxERPType oType,
aRow 
) [protected]

Imports article 2 category relation. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 457 of file oxerpcsv.php.

oxErpCsv._importMainArticle2Category ( oxERPType oType,
aRow 
) [protected]

Imports main article 2 category relation. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 479 of file oxerpcsv.php.

oxErpCsv._importCategory ( oxERPType oType,
aRow 
) [protected]

Imports category. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 507 of file oxerpcsv.php.

oxErpCsv._importCrossselling ( oxERPType oType,
aRow 
) [protected]

Imports crosselling. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 521 of file oxerpcsv.php.

oxErpCsv._importScaleprice ( oxERPType oType,
aRow 
) [protected]

Imports scale price. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 543 of file oxerpcsv.php.

oxErpCsv._importOrder ( oxERPType oType,
aRow 
) [protected]

Imports order. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 557 of file oxerpcsv.php.

oxErpCsv._importOrderArticle ( oxERPType oType,
aRow 
) [protected]

Imports order article. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 572 of file oxerpcsv.php.

oxErpCsv._importOrderStatus ( oxERPType oType,
aRow 
) [protected]

Imports order status. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 586 of file oxerpcsv.php.

oxErpCsv._importUser ( oxERPType oType,
aRow 
) [protected]

Imports user. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 626 of file oxerpcsv.php.

oxErpCsv._importVendor ( oxERPType oType,
aRow 
) [protected]

Imports vendor. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 656 of file oxerpcsv.php.

oxErpCsv._importArtextends ( oxERPType oType,
aRow 
) [protected]

Imports article extended info. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 670 of file oxerpcsv.php.

oxErpCsv._importCountry ( oxERPType oType,
aRow 
) [protected]

Imports country object. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 687 of file oxerpcsv.php.

oxErpCsv._importArticleStock ( oxERPType oType,
aRow 
) [protected]

Imports article stock. Returns import status (TRUE if success)

Parameters:
object $oType type object
object $aRow db row array
Returns:
bool

Definition at line 701 of file oxerpcsv.php.


Member Data Documentation

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

Definition at line 12 of file oxerpcsv.php.

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

Definition at line 18 of file oxerpcsv.php.

oxErpCsv.$_sCurrVersion = "" [protected]

Definition at line 24 of file oxerpcsv.php.

oxErpCsv.$_aData = array() [protected]

Definition at line 30 of file oxerpcsv.php.

oxErpCsv.$_iRetryRows = 0 [protected]

Definition at line 36 of file oxerpcsv.php.

oxErpCsv.$_sReturn [protected]

Definition at line 42 of file oxerpcsv.php.

oxErpCsv.$_sPath [protected]

Definition at line 48 of file oxerpcsv.php.

oxErpCsv.$_aImportedActions2Article = array() [protected]

Definition at line 54 of file oxerpcsv.php.

oxErpCsv.$_aImportedObject2Category = array() [protected]

Definition at line 60 of file oxerpcsv.php.

oxErpCsv.$_aImportedAccessoire2Article = array() [protected]

Definition at line 66 of file oxerpcsv.php.


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

Generated on Wed Apr 22 12:30:57 2009 for OXID eShop CE by  doxygen 1.5.5