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 228 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

Definition at line 291 of file genimport_main.php.

GenImport_Main._deleteCsvFile (  )  [protected]

Deletes uploaded csv file from temp directory

Definition at line 153 of file genimport_main.php.

GenImport_Main._getCsvFieldsEncolser (  )  [protected]

Get csv field encloser symbol

Returns:
string

Definition at line 325 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 167 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 196 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 266 of file genimport_main.php.

GenImport_Main._resetUploadedCsvData (  )  [protected]

Resets CSV parameters stored in session

Definition at line 213 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 71 of file genimport_main.php.


Member Data Documentation

GenImport_Main.$_sCsvFilePath = null [protected]

Definition at line 28 of file genimport_main.php.

GenImport_Main.$_sDefaultStringEncloser = '"' [protected]

Definition at line 56 of file genimport_main.php.

GenImport_Main.$_sDefaultStringTerminator = ";" [protected]

Definition at line 49 of file genimport_main.php.

GenImport_Main.$_sStringEncloser = null [protected]

Definition at line 42 of file genimport_main.php.

GenImport_Main.$_sStringTerminator = null [protected]

Definition at line 35 of file genimport_main.php.

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

Reimplemented from oxAdminView.

Reimplemented in GenImport.

Definition at line 63 of file genimport_main.php.

GenImport_Main.$sClassDo = "genImport_do"

Definition at line 14 of file genimport_main.php.

GenImport_Main.$sClassMain = "genImport_main"

Definition at line 21 of file genimport_main.php.


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