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) |
Detailed Description
oxERPBase class, provides all basic functions, needed for ERP to function
Definition at line 6 of file oxerpbase.php.
Member Function Documentation
oxERPBase::__call |
( |
|
$sMethod, |
|
|
|
$aArguments |
|
) |
| |
default fallback if some handler is missing
- Parameters
-
string | $sMethod | method name |
array | $aArguments | arguments |
- Exceptions
-
Reimplemented in oxErpGenImport.
Definition at line 173 of file oxerpbase.php.
oxERPBase::_afterExport |
( |
|
$sType | ) |
|
|
abstractprotected |
hook after export
- Parameters
-
string | $sType | type of export |
- Returns
- null
Reimplemented in oxErpCsv.
oxERPBase::_afterImport |
( |
| ) |
|
|
abstractprotected |
hook after import
- Returns
- null
Reimplemented in oxErpCsv.
oxERPBase::_beforeExport |
( |
|
$sType | ) |
|
|
abstractprotected |
hook before export
- Parameters
-
string | $sType | type of export |
- Returns
- null
Reimplemented in oxErpCsv.
oxERPBase::_beforeImport |
( |
| ) |
|
|
abstractprotected |
hook before import
- Returns
- null
Reimplemented in oxErpCsv.
oxERPBase::_checkAccess |
( |
|
$oType, |
|
|
|
$blWrite, |
|
|
|
$sOxid = null |
|
) |
| |
|
protected |
Checks if user as sufficient rights
- Parameters
-
oxErpType | $oType | data type object |
boolean | $blWrite | check also for write access |
string | $sOxid | check write access for this OXID |
Definition at line 467 of file oxerpbase.php.
static oxERPBase::_checkRequestedVersion |
( |
| ) |
|
|
staticprotected |
checks requested version if it is supported by shop
- Exceptions
-
- Returns
- null
Definition at line 583 of file oxerpbase.php.
static oxERPBase::_checkShopVersion |
( |
| ) |
|
|
staticprotected |
checks if erp version is supported by shop
- Exceptions
-
- Returns
- null
Definition at line 565 of file oxerpbase.php.
oxERPBase::_export |
( |
|
$sType, |
|
|
|
$sWhere, |
|
|
|
$iStart = null , |
|
|
|
$iCount = null , |
|
|
|
$sSortFieldName = null , |
|
|
|
$sSortType = null |
|
) |
| |
|
protected |
Exports one type internal function, called after _beforeExport and before _afterExport methods
- Parameters
-
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 346 of file oxerpbase.php.
oxERPBase::_getImportMode |
( |
|
$aData | ) |
|
|
abstractprotected |
oxERPBase::_getImportType |
( |
& |
$aData | ) |
|
|
abstractprotected |
oxERPBase::_getInstanceOfType |
( |
|
$sType | ) |
|
|
protected |
Factory for ERP types
- Parameters
-
string | $sType | type name in objects dir |
- Returns
- oxErpType
Reimplemented in oxErpCsv.
Definition at line 320 of file oxerpbase.php.
oxERPBase::_getKeyID |
( |
|
$oType, |
|
|
|
$aData |
|
) |
| |
|
protected |
return key id for data record
- Parameters
-
oxErpType | $oType | data type object |
array | $aData | data |
- Returns
- string
Definition at line 421 of file oxerpbase.php.
oxERPBase::_importOne |
( |
| ) |
|
|
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
- Returns
- boolean
Definition at line 488 of file oxerpbase.php.
oxERPBase::_modifyData |
( |
|
$aData, |
|
|
|
$oType |
|
) |
| |
|
abstractprotected |
prepare data for import
- Parameters
-
array | $aData | data |
oxErpType | $oType | data type object |
- Returns
- array
Reimplemented in oxErpGenImport, and oxErpCsv.
Increase import counter, if retry is detected, only failed imports are repeated
Definition at line 449 of file oxerpbase.php.
oxERPBase::_outputMappingArray |
( |
|
$sTable | ) |
|
|
protected |
Just used for developing
- Parameters
-
Definition at line 400 of file oxerpbase.php.
Reset import counter, if retry is detected, only failed imports are repeated
Definition at line 435 of file oxerpbase.php.
oxERPBase::_save |
( |
oxERPType & |
$oType, |
|
|
|
$aData, |
|
|
|
$blAllowCustomShopId = false |
|
) |
| |
|
protected |
Insert or Update a Row into database
- Parameters
-
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 |
- Returns
- string | false
Definition at line 544 of file oxerpbase.php.
oxERPBase::createPluginObject |
( |
|
$sId | ) |
|
create plugin object
- Parameters
-
string | $sId | the name of the plugin |
- Returns
- oxErpPluginBase
Definition at line 635 of file oxerpbase.php.
oxERPBase::exportType |
( |
|
$sType, |
|
|
|
$sWhere = null , |
|
|
|
$iStart = null , |
|
|
|
$iCount = null , |
|
|
|
$sSortFieldName = null , |
|
|
|
$sSortType = null |
|
) |
| |
Export one object type
- Parameters
-
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 295 of file oxerpbase.php.
oxERPBase::getImportData |
( |
|
$iIdx = null | ) |
|
|
abstract |
import data getter
- Parameters
-
- Returns
- array
Reimplemented in oxErpCsv.
oxERPBase::getImportedRowCount |
( |
| ) |
|
|
abstract |
gets count of imported rows, total, during import
- Returns
- int $_iImportedRowCount
Reimplemented in oxErpCsv.
static oxERPBase::getRequestedVersion |
( |
| ) |
|
|
static |
gets requested db layer version
- Exceptions
-
- Returns
- string
Definition at line 595 of file oxerpbase.php.
oxERPBase::getSessionID |
( |
| ) |
|
session id getter
- Returns
- string
Definition at line 91 of file oxerpbase.php.
oxERPBase::getStatistics |
( |
| ) |
|
_aStatistics getter
- Returns
- array
Definition at line 81 of file oxerpbase.php.
static oxERPBase::getUsedDbFieldsVersion |
( |
| ) |
|
|
static |
gets requested version for db fields used
- Returns
- string
Definition at line 609 of file oxerpbase.php.
oxERPBase::init |
( |
|
$sUserName, |
|
|
|
$sPassword, |
|
|
|
$iShopID = 1 , |
|
|
|
$iLanguage = 0 |
|
) |
| |
Init ERP Framework Creates Objects, checks Rights etc.
- Parameters
-
string | $sUserName | user login name |
string | $sPassword | user password |
int | $iShopID | shop id to login |
int | $iLanguage | main language id |
- Returns
- boolean
Reimplemented in oxErpGenImport.
Definition at line 197 of file oxerpbase.php.
oxERPBase::loadSessionData |
( |
|
$sSessionID | ) |
|
oxERPBase::setImportedIds |
( |
|
$key | ) |
|
|
abstract |
adds true to $_aImportedIds where key is given
- Parameters
-
- Returns
- null
Reimplemented in oxErpCsv.
static oxERPBase::setVersion |
( |
|
$sDbLayerVersion = '' | ) |
|
|
static |
gets requested db layer version
- Parameters
-
string | $sDbLayerVersion | requested version |
- Exceptions
-
Definition at line 621 of file oxerpbase.php.
Member Data Documentation
oxERPBase::$_aDbLayer2ShopDbVersions |
|
staticprotected |
oxERPBase::$_aImportedIds = array() |
|
protected |
oxERPBase::$_aStatistics = array() |
oxERPBase::$_blInit = false |
|
protected |
oxERPBase::$_iImportedRowCount = 0 |
|
protected |
oxERPBase::$_iLanguage = null |
|
protected |
oxERPBase::$_sRequestedVersion = '' |
|
staticprotected |
oxERPBase::$_sUserID = null |
|
protected |
oxERPBase::$MODE_DELETE = "Delete" |
|
static |
oxERPBase::$MODE_IMPORT = "Import" |
|
static |
const oxERPBase::ERROR_DELETE_NO_EMPTY_CATEGORY = "Only empty category can be deleated" |
const oxERPBase::ERROR_ERP_VERSION_NOT_SUPPORTED_BY_SHOP = "ERROR: shop does not support requested ERP version." |
const oxERPBase::ERROR_NO_INIT = "Init not executed, Access denied!" |
const oxERPBase::ERROR_OBJECT_NOT_EXISTING = "Object does not exist" |
const oxERPBase::ERROR_SHOP_VERSION_NOT_SUPPORTED_BY_ERP = "ERROR: ERP does not support current shop version." |
const oxERPBase::ERROR_USER_EXISTS = "ERROR: User already exists" |
const oxERPBase::ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!" |
const oxERPBase::ERROR_USER_WRONG = "ERROR: Could not login" |
The documentation for this class was generated from the following file: