OXID eShop CE  4.10.2
 All Classes Namespaces Files Functions Variables Pages
GenImport_Main Class Reference
+ Inheritance diagram for GenImport_Main:
+ Collaboration diagram for GenImport_Main:

Public Member Functions

 render ()
- Public Member Functions inherited from oxAdminDetails
 resetNrOfCatArticles ()
 resetNrOfVendorArticles ()
 resetNrOfManufacturerArticles ()
 changeFolder ()
- Public Member Functions inherited from oxAdminView
 __construct ()
 init ()
 addGlobalParams ($oShop=null)
 getServiceUrl ($sLangAbbr=null)
 save ()
 resetContentCache ($blForceReset=null)
 resetCounter ($sCounterType, $sValue=null)
 getNavigation ()
 getViewId ()
 chshp ()
 resetSeoData ($sShopId)
 getPreviewId ()
 getEditObjectId ()
 setEditObjectId ($sId)
- Public Member Functions inherited from oxView
 setViewParameters ($aParams=null)
 getViewParameter ($sKey)
 setIsCallForCache ($blIsCallForCache=null)
 getIsCallForCache ()
 addTplParam ($sPara, $sValue)
 getBelboonParam ()
 getViewConfig ()
 getTemplateName ()
 setTemplateName ($sTemplate)
 setClassName ($sClassName)
 getClassName ()
 setFncName ($sFncName)
 getFncName ()
 setViewData ($aViewData=null)
 getViewData ()
 getViewDataElement ($sParamId=null)
 setClassLocation ($sClassLocation=null)
 getClassLocation ()
 setThisAction ($sThisAction=null)
 getThisAction ()
 setParent ($oParent=null)
 getParent ()
 setIsComponent ($blIsComponent=null)
 getIsComponent ()
 executeFunction ($sFunction)
 getAdditionalParams ()
 getTrustedShopId ()
 getTSExcellenceId ()
 getCharSet ()
 getShopVersion ()
 getShopEdition ()
 getRevision ()
 getPackageInfo ()
 getShopFullEdition ()
 isDemoVersion ()
 isBetaVersion ()
 isRCVersion ()
 showBetaNote ()
 isDemoShop ()
 showNewsletter ()
 setShowNewsletter ($blShow)
 getShopLogo ()
 setShopLogo ($sLogo)
 getActCategory ()
 setActCategory ($oCategory)
 getCategoryId ()
 setCategoryId ($sCategoryId)
 getErrorDestination ()
 getActionClassName ()
 isConnectedWithFb ()
 getFbUserId ()
 showFbConnectToAccountMsg ()
 isMall ()
 showRdfa ()
 getSidForWidget ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Public Attributes

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

Protected Member Functions

 _deleteCsvFile ()
 _getCsvFieldsNames ()
 _getCsvFirstRow ()
 _resetUploadedCsvData ()
 _checkErrors ($iNavStep)
 _getUploadedCsvFilePath ()
 _checkImportErrors ($oErpImport)
 _getCsvFieldsTerminator ()
 _getCsvFieldsEncolser ()
- Protected Member Functions inherited from oxAdminDetails
 _getTextEditor ($iWidth, $iHeight, $oObject, $sField, $sStylesheet=null)
 _getEditValue ($oObject, $sField)
 _processEditValue ($sValue)
 _getPlainEditor ($iWidth, $iHeight, $oObject, $sField)
 _generateTextEditor ($iWidth, $iHeight, $oObject, $sField, $sStylesheet=null)
 _createCategoryTree ($sTplVarName, $sEditCatId= '', $blForceNonCache=false, $iTreeShopId=null)
 _getCategoryTree ($sTplVarName, $sSelectedCatId, $sEditCatId= '', $blForceNonCache=false, $iTreeShopId=null)
 _setupNavigation ($sNode)
 _resetCounts ($aIds)
- Protected Member Functions inherited from oxAdminView
 _getEditShop ($sShopId)
 _getServiceProtocol ()
 _getShopVersionNr ()
 _addNavigationHistory ($sNode)
 _getMaxUploadFileInfo ($iMaxFileSize, $blFormatted=false)
 _resetContentCache ()
 _allowAdminEdit ($sUserId)
 _getCountryByCode ($sCountryCode)
 _authorize ()
- Protected Member Functions inherited from oxView
 _executeNewAction ($sNewAction)

Protected Attributes

 $_sCsvFilePath = null
 $_sStringTerminator = null
 $_sStringEncloser = null
 $_sDefaultStringTerminator = ";"
 $_sDefaultStringEncloser = '"'
 $_sThisTemplate = "genimport_main.tpl"
- Protected Attributes inherited from oxAdminDetails
 $_oEditor = null
- Protected Attributes inherited from oxAdminView
 $_aSumType
 $_sThisTemplate = null
 $_iDefEdit = 0
 $_iEditLang = 0
 $_sShopTitle = " - "
 $_sShopVersion = null
 $_sServiceUrl = null
 $_oEditShop = null
 $_sEditObjectId = null
- Protected Attributes inherited from oxView
 $_aViewData = array()
 $_sClassLocation = null
 $_sThisAction = null
 $_oParent = null
 $_blIsComponent = false
 $_sThisTemplate = null
 $_sViewId = null
 $_sClass = null
 $_sFnc = null
 $_sTrustedShopId = null
 $_sTSExcellenceId = null
 $_sCharSet = null
 $_sVersion = null
 $_blDemoVersion = null
 $_blDemoShop = null
 $_iNewsStatus = null
 $_sShopLogo = null
 $_sCategoryId = null
 $_oClickCat = null
 $_blIsCallForCache = false
 $_oViewConf = null

Private Member Functions

 setErrorToView ($sInvalidData)

Additional Inherited Members

- Static Protected Attributes inherited from oxAdminView
static $_oNaviTree = null
static $_sAuthUserRights = null

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$iNavStepNavigation step id
Returns
int

Definition at line 235 of file genimport_main.php.

GenImport_Main::_checkImportErrors (   $oErpImport)
protected

Checks if any error occured during import and displays them

Parameters
object$oErpImportImport object

Definition at line 298 of file genimport_main.php.

GenImport_Main::_deleteCsvFile ( )
protected

Deletes uploaded csv file from temp directory

Definition at line 160 of file genimport_main.php.

GenImport_Main::_getCsvFieldsEncolser ( )
protected

Get csv field encloser symbol

Returns
string

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

GenImport_Main::_getCsvFieldsTerminator ( )
protected

Get csv field terminator symbol

Returns
string

Definition at line 315 of file genimport_main.php.

GenImport_Main::_getCsvFirstRow ( )
protected

Get first row from uploaded CSV file

Returns
array

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

GenImport_Main::_resetUploadedCsvData ( )
protected

Resets CSV parameters stored in session

Definition at line 220 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.

GenImport_Main::setErrorToView (   $sInvalidData)
private
Parameters
string$sInvalidData

Definition at line 347 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

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: