GenImport_Main Class Reference

Inheritance diagram for GenImport_Main:

Inheritance graph
[legend]
Collaboration diagram for GenImport_Main:

Collaboration graph
[legend]

List of all members.


Detailed Description

Admin general export manager.

Definition at line 6 of file genimport_main.php.


Public Member Functions

 render ()

Public Attributes

 $sClass_do = "genImport_do"
 $sClass_main = "genImport_main"

Protected Member Functions

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

Protected Attributes

 $_sCsvFilePath
 $_sThisTemplate = "genimport_main.tpl"

Member Function Documentation

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 25 of file genimport_main.php.

GenImport_Main._deleteCsvFile (  )  [protected]

Deletes uploaded csv file from temp directory

Returns:
null

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

GenImport_Main._getCsvFirstRow (  )  [protected]

Get first row from uploaded CSV file

Returns:
array

Definition at line 136 of file genimport_main.php.

GenImport_Main._resetUploadedCsvData (  )  [protected]

Resets CSV parameters stored in session

Returns:
null

Definition at line 156 of file genimport_main.php.

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 172 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 210 of file genimport_main.php.

GenImport_Main._checkImportErrors ( oErpImport  )  [protected]

Checks if any error occured during import and displays them

Returns:
null

Definition at line 236 of file genimport_main.php.


Member Data Documentation

GenImport_Main.$sClass_do = "genImport_do"

Definition at line 8 of file genimport_main.php.

GenImport_Main.$sClass_main = "genImport_main"

Definition at line 9 of file genimport_main.php.

GenImport_Main.$_sCsvFilePath [protected]

Definition at line 11 of file genimport_main.php.

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

Reimplemented from oxAdminView.

Reimplemented in GenImport.

Definition at line 17 of file genimport_main.php.


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

Generated on Wed May 13 13:28:16 2009 for OXID eShop CE by  doxygen 1.5.5