Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

GenImport_Main Class Reference

Inheritance diagram for GenImport_Main:
Collaboration diagram for GenImport_Main:

List of all members.

Public Member Functions

 render ()

Public Attributes

 $sClassDo = "genImport_do"
 $sClassMain = "genImport_main"

Protected Member Functions

 _deleteCsvFile ()
 _getCsvFieldsNames ()
 _getCsvFirstRow ()
 _resetUploadedCsvData ()
 _checkErrors ($iNavStep)
 _getUploadedCsvFilePath ()
 _checkImportErrors ($oErpImport)
 _getCsvFieldsTerminator ()
 _getCsvFieldsEncolser ()

Protected Attributes

 $_sCsvFilePath = null
 $_sStringTerminator = null
 $_sStringEncloser = null
 $_sDefaultStringTerminator = ";"
 $_sDefaultStringEncloser = '"'
 $_sThisTemplate = "genimport_main.tpl"

Detailed Description

Admin general export manager.

Definition at line 6 of file genimport_main.php.


Member Function Documentation

GenImport_Main._checkErrors ( iNavStep  )  [protected]

Checks current import navigation step errors. Returns step id in which error occured.

Parameters:
int $iNavStep Navigation step id
Returns:
int

Definition at line 227 of file genimport_main.php.

GenImport_Main._checkImportErrors ( oErpImport  )  [protected]

Checks if any error occured during import and displays them

Parameters:
object $oErpImport Import object
Returns:
null

Definition at line 291 of file genimport_main.php.

GenImport_Main._deleteCsvFile (  )  [protected]

Deletes uploaded csv file from temp directory

Returns:
null

Definition at line 150 of file genimport_main.php.

GenImport_Main._getCsvFieldsEncolser (  )  [protected]

Get csv field encloser symbol

Returns:
string

Definition at line 324 of file genimport_main.php.

GenImport_Main._getCsvFieldsNames (  )  [protected]

Get columns names from CSV file header. If file has no header returns default columns names Column 1, Column 2..

Returns:
array

Definition at line 164 of file genimport_main.php.

GenImport_Main._getCsvFieldsTerminator (  )  [protected]

Get csv field terminator symbol

Returns:
string

Definition at line 308 of file genimport_main.php.

GenImport_Main._getCsvFirstRow (  )  [protected]

Get first row from uploaded CSV file

Returns:
array

Definition at line 193 of file genimport_main.php.

GenImport_Main._getUploadedCsvFilePath (  )  [protected]

Checks if CSV file was uploaded. If uploaded - moves it to temp dir and stores path to file in session. Return path to uploaded file.

Returns:
string

Definition at line 265 of file genimport_main.php.

GenImport_Main._resetUploadedCsvData (  )  [protected]

Resets CSV parameters stored in session

Returns:
null

Definition at line 212 of file genimport_main.php.

GenImport_Main.render (  ) 

Creates shop object, passes shop data to Smarty engine and returns name of template file

Returns:
string

Reimplemented from oxAdminDetails.

Definition at line 65 of file genimport_main.php.


Member Data Documentation

GenImport_Main.$_sCsvFilePath = null [protected]

Definition at line 27 of file genimport_main.php.

GenImport_Main.$_sDefaultStringEncloser = '"' [protected]

Definition at line 51 of file genimport_main.php.

GenImport_Main.$_sDefaultStringTerminator = ";" [protected]

Definition at line 45 of file genimport_main.php.

GenImport_Main.$_sStringEncloser = null [protected]

Definition at line 39 of file genimport_main.php.

GenImport_Main.$_sStringTerminator = null [protected]

Definition at line 33 of file genimport_main.php.

GenImport_Main.$_sThisTemplate = "genimport_main.tpl" [protected]

Reimplemented from oxAdminView.

Reimplemented in GenImport.

Definition at line 57 of file genimport_main.php.

GenImport_Main.$sClassDo = "genImport_do"

Definition at line 13 of file genimport_main.php.

GenImport_Main.$sClassMain = "genImport_main"

Definition at line 20 of file genimport_main.php.


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