|
OXID eShop CE
4.10.6
|
Inheritance diagram for oxERPBase:
Collaboration diagram for oxERPBase:Public Member Functions | |
| getImportedRowCount () | |
| setImportedIds ($key) | |
| getStatistics () | |
| getSessionID () | |
| getImportData ($iIdx=null) | |
| __call ($sMethod, $aArguments) | |
| init ($sUserName, $sPassword, $iShopID=1, $iLanguage=0) | |
| loadSessionData ($sSessionID) | |
| exportType ($sType, $sWhere=null, $iStart=null, $iCount=null, $sSortFieldName=null, $sSortType=null) | |
| import () | |
| createPluginObject ($sId) | |
Static Public Member Functions | |
| static | getRequestedVersion () |
| static | getUsedDbFieldsVersion () |
| static | setVersion ($sDbLayerVersion= '') |
Public Attributes | |
| const | ERROR_USER_WRONG = "ERROR: Could not login" |
| const | ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!" |
| const | ERROR_USER_EXISTS = "ERROR: User already exists" |
| const | ERROR_NO_INIT = "Init not executed, Access denied!" |
| const | ERROR_DELETE_NO_EMPTY_CATEGORY = "Only empty category can be deleated" |
| const | ERROR_OBJECT_NOT_EXISTING = "Object does not exist" |
| const | ERROR_ERP_VERSION_NOT_SUPPORTED_BY_SHOP = "ERROR: shop does not support requested ERP version." |
| const | ERROR_SHOP_VERSION_NOT_SUPPORTED_BY_ERP = "ERROR: ERP does not support current shop version." |
| $_aStatistics = array() | |
| $_iIdx = 0 | |
Static Public Attributes | |
| static | $MODE_IMPORT = "Import" |
| static | $MODE_DELETE = "Delete" |
Protected Member Functions | |
| _beforeExport ($sType) | |
| _afterExport ($sType) | |
| _beforeImport () | |
| _afterImport () | |
| _getImportType (&$aData) | |
| _getImportMode ($aData) | |
| _modifyData ($aData, $oType) | |
| _getInstanceOfType ($sType) | |
| _export ($sType, $sWhere, $iStart=null, $iCount=null, $sSortFieldName=null, $sSortType=null) | |
| _outputMappingArray ($sTable) | |
| _getKeyID ($oType, $aData) | |
| _resetIdx () | |
| _nextIdx () | |
| _checkAccess ($oType, $blWrite, $sOxid=null) | |
| _importOne () | |
| _save (oxERPType &$oType, $aData, $blAllowCustomShopId=false) | |
Static Protected Member Functions | |
| static | _checkShopVersion () |
| static | _checkRequestedVersion () |
Protected Attributes | |
| $_blInit = false | |
| $_iLanguage = null | |
| $_sUserID = null | |
| $_sSID = null | |
| $_aImportedIds = array() | |
| $_iImportedRowCount = 0 | |
Static Protected Attributes | |
| static | $_sRequestedVersion = '' |
| static | $_aDbLayer2ShopDbVersions |
oxERPBase class, provides all basic functions, needed for ERP to function
Definition at line 8 of file oxerpbase.php.
| oxERPBase::__call | ( | $sMethod, | |
| $aArguments | |||
| ) |
default fallback if some handler is missing
| string | $sMethod | method name |
| array | $aArguments | arguments |
| Exception | not implemented |
Reimplemented in oxErpGenImport.
Definition at line 175 of file oxerpbase.php.
|
abstractprotected |
|
abstractprotected |
|
abstractprotected |
|
abstractprotected |
|
protected |
Checks if user as sufficient rights
| oxErpType | $oType | data type object |
| boolean | $blWrite | check also for write access |
| string | $sOxid | check write access for this OXID |
Definition at line 469 of file oxerpbase.php.
|
staticprotected |
checks requested version if it is supported by shop
| Exception | on not supported version |
Definition at line 585 of file oxerpbase.php.
|
staticprotected |
checks if erp version is supported by shop
| Exception | on not supported shop version |
Definition at line 567 of file oxerpbase.php.
|
protected |
Exports one type internal function, called after _beforeExport and before _afterExport methods
| string | $sType | data type name in objects dir |
| string | $sWhere | where filter for export |
| int | $iStart | limit start |
| int | $iCount | limit |
| string | $sSortFieldName | field name to sort by |
| string | $sSortType | "asc" or "desc" |
Definition at line 348 of file oxerpbase.php.
|
abstractprotected |
retrieve import mode
| array | $aData | data |
Reimplemented in oxErpGenImport, and oxErpCsv.
|
abstractprotected |
retrieve import type
| array | &$aData | data |
Reimplemented in oxErpGenImport, and oxErpCsv.
|
protected |
Factory for ERP types
| string | $sType | type name in objects dir |
Reimplemented in oxErpCsv.
Definition at line 322 of file oxerpbase.php.
|
protected |
return key id for data record
| oxErpType | $oType | data type object |
| array | $aData | data |
Definition at line 423 of file oxerpbase.php.
|
protected |
Main Import Handler, imports one row/call/object... returns true if there were any data processed, and master loop should run import again.
after importing, fills $this->_aStatistics[$this->_iIdx] with array of r=>(boolean)result, m=>(string)error message
Definition at line 490 of file oxerpbase.php.
|
abstractprotected |
prepare data for import
| array | $aData | data |
| oxErpType | $oType | data type object |
Reimplemented in oxErpGenImport, and oxErpCsv.
|
protected |
Increase import counter, if retry is detected, only failed imports are repeated
Definition at line 451 of file oxerpbase.php.
|
protected |
Just used for developing
| string | $sTable | table name |
Definition at line 402 of file oxerpbase.php.
|
protected |
Reset import counter, if retry is detected, only failed imports are repeated
Definition at line 437 of file oxerpbase.php.
|
protected |
Insert or Update a Row into database
| oxERPType | &$oType | data type object |
| array | $aData | assoc. Array with fieldnames, values what should be stored in this table |
| bool | $blAllowCustomShopId | if custom shop id is allowed |
Definition at line 546 of file oxerpbase.php.
| oxERPBase::createPluginObject | ( | $sId | ) |
create plugin object
| string | $sId | the name of the plugin |
Definition at line 637 of file oxerpbase.php.
| oxERPBase::exportType | ( | $sType, | |
$sWhere = null, |
|||
$iStart = null, |
|||
$iCount = null, |
|||
$sSortFieldName = null, |
|||
$sSortType = null |
|||
| ) |
Export one object type
| string | $sType | data type name in objects dir |
| string | $sWhere | where filter for export |
| int | $iStart | limit start |
| int | $iCount | limit |
| string | $sSortFieldName | field name to sort by |
| string | $sSortType | "asc" or "desc" |
Definition at line 297 of file oxerpbase.php.
|
abstract |
|
abstract |
gets count of imported rows, total, during import
Reimplemented in oxErpCsv.
|
static |
gets requested db layer version
| Exception | on not supported version |
Definition at line 597 of file oxerpbase.php.
| oxERPBase::getSessionID | ( | ) |
| oxERPBase::getStatistics | ( | ) |
|
static |
gets requested version for db fields used
Definition at line 611 of file oxerpbase.php.
| oxERPBase::import | ( | ) |
imports all data set up before
Reimplemented in oxErpCsv.
Definition at line 307 of file oxerpbase.php.
| oxERPBase::init | ( | $sUserName, | |
| $sPassword, | |||
$iShopID = 1, |
|||
$iLanguage = 0 |
|||
| ) |
Init ERP Framework Creates Objects, checks Rights etc.
| string | $sUserName | user login name |
| string | $sPassword | user password |
| int | $iShopID | shop id to login |
| int | $iLanguage | main language id |
Reimplemented in oxErpGenImport.
Definition at line 199 of file oxerpbase.php.
| oxERPBase::loadSessionData | ( | $sSessionID | ) |
oxERPBase::loadSessionData() load session - should be called on init
| string | $sSessionID | session id |
Reimplemented in oxErpCsv.
Definition at line 253 of file oxerpbase.php.
|
abstract |
adds true to $_aImportedIds where key is given
| mixed | $key | - given key |
Reimplemented in oxErpCsv.
|
static |
gets requested db layer version
| string | $sDbLayerVersion | requested version |
| Exception | on not supported version |
Definition at line 623 of file oxerpbase.php.
|
staticprotected |
Definition at line 43 of file oxerpbase.php.
|
protected |
Definition at line 52 of file oxerpbase.php.
| oxERPBase::$_aStatistics = array() |
Definition at line 61 of file oxerpbase.php.
|
protected |
Definition at line 23 of file oxerpbase.php.
| oxERPBase::$_iIdx = 0 |
Definition at line 62 of file oxerpbase.php.
|
protected |
Definition at line 59 of file oxerpbase.php.
|
protected |
Definition at line 24 of file oxerpbase.php.
|
staticprotected |
Definition at line 29 of file oxerpbase.php.
|
protected |
Definition at line 27 of file oxerpbase.php.
|
protected |
Definition at line 25 of file oxerpbase.php.
|
static |
Definition at line 21 of file oxerpbase.php.
|
static |
Definition at line 20 of file oxerpbase.php.
| const oxERPBase::ERROR_DELETE_NO_EMPTY_CATEGORY = "Only empty category can be deleated" |
Definition at line 15 of file oxerpbase.php.
| const oxERPBase::ERROR_ERP_VERSION_NOT_SUPPORTED_BY_SHOP = "ERROR: shop does not support requested ERP version." |
Definition at line 17 of file oxerpbase.php.
| const oxERPBase::ERROR_NO_INIT = "Init not executed, Access denied!" |
Definition at line 14 of file oxerpbase.php.
| const oxERPBase::ERROR_OBJECT_NOT_EXISTING = "Object does not exist" |
Definition at line 16 of file oxerpbase.php.
| const oxERPBase::ERROR_SHOP_VERSION_NOT_SUPPORTED_BY_ERP = "ERROR: ERP does not support current shop version." |
Definition at line 18 of file oxerpbase.php.
| const oxERPBase::ERROR_USER_EXISTS = "ERROR: User already exists" |
Definition at line 13 of file oxerpbase.php.
| const oxERPBase::ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!" |
Definition at line 12 of file oxerpbase.php.
| const oxERPBase::ERROR_USER_WRONG = "ERROR: Could not login" |
Definition at line 11 of file oxerpbase.php.