Definition at line 6 of file oxerptype.php.
Public Member Functions | |
getFunctionSuffix () | |
getShopObjectName () | |
getBaseTableName () | |
__construct () | |
setFunctionSuffix ($sNew) | |
setFieldList ($aFieldList) | |
getTableName ($iShopID=1) | |
getSQL ($sWhere, $iLanguage=0, $iShopID=1) | |
getSortString ($sFieldName=null, $sType=null) | |
checkWriteAccess ($sOxid) | |
getObjectForDeletion ($sId) | |
checkForDeletion ($sId) | |
delete ($sID) | |
deleteObject ($oObj, $sID) | |
addExportData ($aFields) | |
addImportData ($aFields) | |
getRightFields () | |
getFieldList () | |
getKeyFields () | |
hasKeyFields () | |
saveObject ($aData, $blAllowCustomShopId) | |
Static Public Attributes | |
static | $ERROR_WRONG_SHOPID = "Wrong shop id, operation not allowed!" |
Protected Member Functions | |
getSqlFieldName ($sField, $iLanguage=0, $iShopID=1) | |
_isAllowedToEdit ($iShopId) | |
_directSqlCheckForDeletion ($sId) | |
_preAssignObject ($oShopObject, $aData, $blAllowCustomShopId) | |
_preSaveObject ($oShopObject, $aData) | |
_postSaveObject ($oShopObject, $aData) | |
Protected Attributes | |
$_sTableName = null | |
$_sFunctionSuffix = null | |
$_aFieldList = null | |
$_aKeyFieldList = null | |
$_sShopObjectName = null | |
$_blRestrictedByShopId = false | |
$_aFieldListVersions = null | |
Private Member Functions | |
_getMultilangualFields () |
oxERPType.__construct | ( | ) |
Class constructor
Reimplemented in oxERPType_Accessoire, oxERPType_Artextends, oxERPType_Article, oxERPType_Article2Action, oxERPType_Article2Category, oxERPType_ArticleStock, oxERPType_Category, oxERPType_Country, oxERPType_Crossselling, oxERPType_Order, oxERPType_OrderArticle, oxERPType_OrderStatus, oxERPType_ScalePrice, oxERPType_User, and oxERPType_Vendor.
Definition at line 93 of file oxerptype.php.
oxERPType.getFunctionSuffix | ( | ) |
oxERPType.getShopObjectName | ( | ) |
oxERPType.getBaseTableName | ( | ) |
oxERPType.setFunctionSuffix | ( | $ | sNew | ) |
setter for the function prefix
string | $sNew new function suffix |
Definition at line 108 of file oxerptype.php.
oxERPType.setFieldList | ( | $ | aFieldList | ) |
Setter for field list
array | $aFieldList field list to store at oxErpType._aFieldList |
Definition at line 120 of file oxerptype.php.
oxERPType.getTableName | ( | $ | iShopID = 1 |
) |
Returns table or Viewname
int | $iShopID table shop id |
Definition at line 132 of file oxerptype.php.
oxERPType._getMultilangualFields | ( | ) | [private] |
Creates Array with [iLanguage][sFieldName]
Definition at line 142 of file oxerptype.php.
oxERPType.getSqlFieldName | ( | $ | sField, | |
$ | iLanguage = 0 , |
|||
$ | iShopID = 1 | |||
) | [protected] |
return sql column name of given table column
string | $sField object field anme | |
int | $iLanguage language id | |
int | $iShopID shop id |
Reimplemented in oxERPType_Article, oxERPType_Category, oxERPType_Country, oxERPType_Order, oxERPType_OrderArticle, oxERPType_OrderStatus, oxERPType_User, and oxERPType_Vendor.
Definition at line 169 of file oxerptype.php.
oxERPType.getSQL | ( | $ | sWhere, | |
$ | iLanguage = 0 , |
|||
$ | iShopID = 1 | |||
) |
return sql column name of given table column
string | $sWhere where condition | |
int | $iLanguage language id | |
int | $iShopID shop id |
Reimplemented in oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 190 of file oxerptype.php.
oxERPType.getSortString | ( | $ | sFieldName = null , |
|
$ | sType = null | |||
) |
returns the "order by " string for a sql query
string | $sFieldName order by that field | |
string | $sType allowed values ASC and DESC |
Definition at line 231 of file oxerptype.php.
oxERPType.checkWriteAccess | ( | $ | sOxid | ) |
Basic access check for writing data, checks for same shopid, should be overridden if field oxshopid does not exist
string | $sOxid the oxid of the object |
Exception | exceltion is thrown when user has no write access |
Reimplemented in oxERPType_ArticleStock, oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 254 of file oxerptype.php.
oxERPType.getObjectForDeletion | ( | $ | sId | ) |
checks done to make sure deletion is possible and allowed
string | $sId id of object |
Exception | exception is thrown when deletion is not possible |
Reimplemented in oxERPType_User.
Definition at line 278 of file oxerptype.php.
oxERPType._isAllowedToEdit | ( | $ | iShopId | ) | [protected] |
Checks if user rights alllows to edit. Returns TRUE if rights allow
int | $iShopId shop id |
Definition at line 312 of file oxerptype.php.
oxERPType._directSqlCheckForDeletion | ( | $ | sId | ) | [protected] |
direct sql check if it is allowed to delete the OXID of the current table
string | $sId entry id |
Definition at line 331 of file oxerptype.php.
oxERPType.checkForDeletion | ( | $ | sId | ) |
default check if it is allowed to delete the OXID of the current table
string | $sId object id |
Definition at line 352 of file oxerptype.php.
oxERPType.delete | ( | $ | sID | ) |
default deletion of the given OXID in the current table
string | $sID deletable object id |
Definition at line 382 of file oxerptype.php.
oxERPType.deleteObject | ( | $ | oObj, | |
$ | sID | |||
) |
default delete call to the given object
object | $oObj object to delete | |
string | $sID object id |
Definition at line 398 of file oxerptype.php.
oxERPType.addExportData | ( | $ | aFields | ) |
We have the possibility to add some data
array | $aFields export fields |
Reimplemented in oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 411 of file oxerptype.php.
oxERPType.addImportData | ( | $ | aFields | ) |
allows to modify data before import
array | $aFields import fields |
Definition at line 426 of file oxerptype.php.
oxERPType.getRightFields | ( | ) |
used for the RR implementation, right now not really used
Definition at line 436 of file oxerptype.php.
oxERPType.getFieldList | ( | ) |
oxERPType.getKeyFields | ( | ) |
oxERPType.hasKeyFields | ( | ) |
oxERPType._preAssignObject | ( | $ | oShopObject, | |
$ | aData, | |||
$ | blAllowCustomShopId | |||
) | [protected] |
issued before saving an object. can modify aData for saving
oxBase | $oShopObject shop object | |
array | $aData data used in assign | |
bool | $blAllowCustomShopId if TRUE - custom shop id is allowed |
Reimplemented in oxERPType_Article, oxERPType_ArticleStock, oxERPType_Category, oxERPType_Order, oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 488 of file oxerptype.php.
oxERPType._preSaveObject | ( | $ | oShopObject, | |
$ | aData | |||
) | [protected] |
prepares object for saving in shop returns true if save can proceed further
object | $oShopObject shop object | |
array | $aData object data |
Reimplemented in oxERPType_User.
Definition at line 540 of file oxerptype.php.
oxERPType.saveObject | ( | $ | aData, | |
$ | blAllowCustomShopId | |||
) |
saves data by calling object saving
array | $aData object data to save | |
bool | $blAllowCustomShopId if TRUE - custom shop id allowed |
Definition at line 553 of file oxerptype.php.
oxERPType._postSaveObject | ( | $ | oShopObject, | |
$ | aData | |||
) | [protected] |
post saving hook. can finish transactions if needed or ajust related data
oxBase | $oShopObject shop object | |
data | $aData post save data |
Reimplemented in oxERPType_Order.
Definition at line 596 of file oxerptype.php.
oxERPType.$ERROR_WRONG_SHOPID = "Wrong shop id, operation not allowed!" [static] |
Definition at line 12 of file oxerptype.php.
oxERPType.$_sTableName = null [protected] |
Definition at line 18 of file oxerptype.php.
oxERPType.$_sFunctionSuffix = null [protected] |
Definition at line 24 of file oxerptype.php.
oxERPType.$_aFieldList = null [protected] |
Definition at line 30 of file oxerptype.php.
oxERPType.$_aKeyFieldList = null [protected] |
Definition at line 36 of file oxerptype.php.
oxERPType.$_sShopObjectName = null [protected] |
Definition at line 42 of file oxerptype.php.
oxERPType.$_blRestrictedByShopId = false [protected] |
Definition at line 49 of file oxerptype.php.
oxERPType.$_aFieldListVersions = null [protected] |
Reimplemented in oxERPType_Artextends, oxERPType_Article, oxERPType_Category, oxERPType_Country, oxERPType_Order, oxERPType_OrderArticle, oxERPType_User, and oxERPType_Vendor.
Definition at line 56 of file oxerptype.php.