Definition at line 13 of file oxerpbase.php.
Public Member Functions | |
getStatistics () | |
getSessionID () | |
getImportData () | |
__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 () | |
Static Public Member Functions | |
static | getRequestedVersion () |
static | getUsedDbFieldsVersion () |
static | setVersion ($sDbLayerVersion= '') |
Public Attributes | |
$_aStatistics = array() | |
$_iIdx = 0 | |
Static Public Attributes | |
static | $ERROR_USER_WRONG = "ERROR: Could not login" |
static | $ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!" |
static | $ERROR_USER_EXISTS = "ERROR: User already exists" |
static | $ERROR_NO_INIT = "Init not executed, Access denied!" |
static | $ERROR_DELETE_NO_EMPTY_CATEGORY = "Only empty category can be deleated" |
static | $ERROR_OBJECT_NOT_EXISTING = "Object does not exist" |
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) | |
Protected Attributes | |
$_blInit = false | |
$_iLanguage = null | |
$_sUserID = null | |
$_sSID = null | |
Static Protected Attributes | |
static | $_sRequestedVersion = '' |
static | $_aDbLayer2ShopDbVersions |
oxERPBase.getStatistics | ( | ) |
oxERPBase.getSessionID | ( | ) |
oxERPBase._beforeExport | ( | $ | sType | ) | [abstract, protected] |
Method which must be called before export
string | $sType export type |
Reimplemented in oxErpCsv.
oxERPBase._afterExport | ( | $ | sType | ) | [abstract, protected] |
Method which must be called after export
string | $sType export object type |
Reimplemented in oxErpCsv.
oxERPBase._beforeImport | ( | ) | [abstract, protected] |
oxERPBase._afterImport | ( | ) | [abstract, protected] |
oxERPBase.getImportData | ( | ) | [abstract] |
oxERPBase._getImportType | ( | &$ | aData | ) | [abstract, protected] |
Import type getter
array | &$aData import data |
Reimplemented in oxErpCsv, and oxErpGenImport.
oxERPBase._getImportMode | ( | $ | aData | ) | [abstract, protected] |
Import mode getter
array | $aData import data |
Reimplemented in oxErpCsv, and oxErpGenImport.
oxERPBase._modifyData | ( | $ | aData, | |
$ | oType | |||
) | [abstract, protected] |
Abstract data modifier
array | $aData data to modify | |
object | $oType type object |
Reimplemented in oxErpCsv, and oxErpGenImport.
oxERPBase.__call | ( | $ | sMethod, | |
$ | aArguments | |||
) |
default fallback if some handler is missing
string | $sMethod method to call | |
array | $aArguments method arguments |
Reimplemented in oxErpGenImport.
Definition at line 179 of file oxerpbase.php.
oxERPBase.init | ( | $ | sUserName, | |
$ | sPassword, | |||
$ | iShopID = 1 , |
|||
$ | iLanguage = 0 | |||
) |
oxERPBase.Init() Init ERP Framework Creates Objects, checks Rights etc.
mixed | $sUserName user login name | |
mixed | $sPassword user password | |
integer | $iShopID shop id | |
integer | $iLanguage language id |
Reimplemented in oxErpGenImport.
Definition at line 204 of file oxerpbase.php.
oxERPBase.loadSessionData | ( | $ | sSessionID | ) | [abstract] |
different handeling for SOAP request and CSV usage (V0.1)
string | $sSessionID session id |
Reimplemented in oxErpCsv.
oxERPBase.exportType | ( | $ | sType, | |
$ | sWhere = null , |
|||
$ | iStart = null , |
|||
$ | iCount = null , |
|||
$ | sSortFieldName = null , |
|||
$ | sSortType = null | |||
) |
Export one object type
string | $sType object type | |
string | $sWhere where condition | |
int | $iStart start fetch records from | |
int | $iCount number of records to export | |
string | $sSortFieldName sorting field name | |
string | $sSortType sorting direction |
Definition at line 275 of file oxerpbase.php.
oxERPBase.import | ( | ) |
imports all data set up before
Reimplemented in oxErpCsv.
Definition at line 287 of file oxerpbase.php.
oxERPBase._getInstanceOfType | ( | $ | sType | ) | [protected] |
Factory for ERP types
string | $sType instance type |
Reimplemented in oxErpCsv.
Definition at line 302 of file oxerpbase.php.
oxERPBase._export | ( | $ | sType, | |
$ | sWhere, | |||
$ | iStart = null , |
|||
$ | iCount = null , |
|||
$ | sSortFieldName = null , |
|||
$ | sSortType = null | |||
) | [protected] |
Exports one type
string | $sType object type | |
string | $sWhere where condition | |
int | $iStart start fetch records from | |
int | $iCount number of records to export | |
string | $sSortFieldName sorting field name | |
string | $sSortType sorting direction |
Definition at line 327 of file oxerpbase.php.
oxERPBase._outputMappingArray | ( | $ | sTable | ) | [protected] |
Just used for developing
array | $sTable name of table to output its mapping |
Definition at line 381 of file oxerpbase.php.
oxERPBase._getKeyID | ( | $ | oType, | |
$ | aData | |||
) | [protected] |
Returns record id
object | $oType type object | |
object | $aData field data |
Definition at line 402 of file oxerpbase.php.
oxERPBase._resetIdx | ( | ) | [protected] |
Reset import counter, if retry is detected, only failed imports are repeated
Definition at line 441 of file oxerpbase.php.
oxERPBase._nextIdx | ( | ) | [protected] |
Increase import counter, if retry is detected, only failed imports are repeated
Definition at line 456 of file oxerpbase.php.
oxERPBase._checkAccess | ( | $ | oType, | |
$ | blWrite, | |||
$ | sOxid = null | |||
) | [protected] |
Checks if user as sufficient rights
object | $oType type object | |
boolean | $blWrite access mode | |
integer | $sOxid object id |
Definition at line 475 of file oxerpbase.php.
oxERPBase._importOne | ( | ) | [protected] |
Main Import Handler, imports one row/call/object...
Definition at line 552 of file oxerpbase.php.
Insert or Update a Row into database
oxERPType | $oType object to save | |
array | $aData assoc. array with fieldnames, values what should be stored in this table | |
bool | $blAllowCustomShopId if TRUE custom shop id allowed |
Definition at line 603 of file oxerpbase.php.
static oxERPBase.getRequestedVersion | ( | ) | [static] |
static oxERPBase.getUsedDbFieldsVersion | ( | ) | [static] |
gets requested version for db fields used
Definition at line 647 of file oxerpbase.php.
static oxERPBase.setVersion | ( | $ | sDbLayerVersion = '' |
) | [static] |
gets requested db layer version
string | $sDbLayerVersion database layer version |
Definition at line 659 of file oxerpbase.php.
oxERPBase.$ERROR_USER_WRONG = "ERROR: Could not login" [static] |
Definition at line 15 of file oxerpbase.php.
oxERPBase.$ERROR_USER_NO_RIGHTS = "Not sufficient rights to perform operation!" [static] |
Definition at line 16 of file oxerpbase.php.
oxERPBase.$ERROR_USER_EXISTS = "ERROR: User already exists" [static] |
Definition at line 17 of file oxerpbase.php.
oxERPBase.$ERROR_NO_INIT = "Init not executed, Access denied!" [static] |
Definition at line 18 of file oxerpbase.php.
oxERPBase.$ERROR_DELETE_NO_EMPTY_CATEGORY = "Only empty category can be deleated" [static] |
Definition at line 19 of file oxerpbase.php.
oxERPBase.$ERROR_OBJECT_NOT_EXISTING = "Object does not exist" [static] |
Definition at line 20 of file oxerpbase.php.
oxERPBase.$MODE_IMPORT = "Import" [static] |
Definition at line 22 of file oxerpbase.php.
oxERPBase.$MODE_DELETE = "Delete" [static] |
Definition at line 23 of file oxerpbase.php.
oxERPBase.$_blInit = false [protected] |
Definition at line 30 of file oxerpbase.php.
oxERPBase.$_iLanguage = null [protected] |
Definition at line 37 of file oxerpbase.php.
oxERPBase.$_sUserID = null [protected] |
Definition at line 44 of file oxerpbase.php.
oxERPBase.$_sSID = null [protected] |
Definition at line 51 of file oxerpbase.php.
oxERPBase.$_sRequestedVersion = '' [static, protected] |
Definition at line 58 of file oxerpbase.php.
oxERPBase.$_aDbLayer2ShopDbVersions [static, protected] |
Initial value:
array( '1' => '1', '1.1' => '1', '2' => '2', )
Definition at line 66 of file oxerpbase.php.
oxERPBase.$_aStatistics = array() |
Definition at line 75 of file oxerpbase.php.
oxERPBase.$_iIdx = 0 |
Definition at line 82 of file oxerpbase.php.