Definition at line 3 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 | ( | ) |
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 48 of file oxerptype.php.
oxERPType.getFunctionSuffix | ( | ) |
getter for _sFunctionSuffix
Reimplemented in oxERPType_User.
Definition at line 32 of file oxerptype.php.
oxERPType.getShopObjectName | ( | ) |
oxERPType.getBaseTableName | ( | ) |
oxERPType.setFunctionSuffix | ( | $ | sNew | ) |
setter for the function prefix
string | $sNew |
Definition at line 61 of file oxerptype.php.
oxERPType.setFieldList | ( | $ | aFieldList | ) |
oxERPType.getTableName | ( | $ | iShopID = 1 |
) |
oxERPType._getMultilangualFields | ( | ) | [private] |
Creates Array with [iLanguage][sFieldName]
Definition at line 91 of file oxerptype.php.
oxERPType.getSqlFieldName | ( | $ | sField, | |
$ | iLanguage = 0 , |
|||
$ | iShopID = 1 | |||
) | [protected] |
return sql column name of given table column
string | $sField | |
int | $iLanguage |
Reimplemented in oxERPType_Article, oxERPType_Category, oxERPType_Country, oxERPType_Order, oxERPType_OrderArticle, oxERPType_OrderStatus, oxERPType_User, and oxERPType_Vendor.
Definition at line 117 of file oxerptype.php.
oxERPType.getSQL | ( | $ | sWhere, | |
$ | iLanguage = 0 , |
|||
$ | iShopID = 1 | |||
) |
returns SQL string for this type
string | $sWhere | |
integer | $iLanguage |
Reimplemented in oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 135 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 172 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 |
Reimplemented in oxERPType_ArticleStock, oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 193 of file oxerptype.php.
oxERPType.getObjectForDeletion | ( | $ | sId | ) |
checks done to make sure deletion is possible and allowed
string | $sId id of object |
Exception |
Reimplemented in oxERPType_User.
Definition at line 217 of file oxerptype.php.
oxERPType._isAllowedToEdit | ( | $ | iShopId | ) | [protected] |
Definition at line 244 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 |
Definition at line 261 of file oxerptype.php.
oxERPType.checkForDeletion | ( | $ | sId | ) |
default check if it is allowed to delete the OXID of the current table
string | $sId |
Definition at line 280 of file oxerptype.php.
oxERPType.delete | ( | $ | sID | ) |
default deletion of the given OXID in the current table
string | $sID |
Definition at line 309 of file oxerptype.php.
oxERPType.deleteObject | ( | $ | oObj, | |
$ | sID | |||
) |
default delete call to the given object
object | $oObj | |
string | $sID |
Definition at line 324 of file oxerptype.php.
oxERPType.addExportData | ( | $ | aFields | ) |
We have the possibility to add some data
array | $aFields |
Reimplemented in oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 335 of file oxerptype.php.
oxERPType.addImportData | ( | $ | aFields | ) |
allows to modify data before import
array | $aFields |
Definition at line 350 of file oxerptype.php.
oxERPType.GetRightFields | ( | ) |
used for the RR implementation, right now not really used
Definition at line 360 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 | |
array | $aData | |
bool | $blAllowCustomShopId |
Reimplemented in oxERPType_Article, oxERPType_ArticleStock, oxERPType_Category, oxERPType_Order, oxERPType_OrderArticle, oxERPType_OrderStatus, and oxERPType_User.
Definition at line 413 of file oxerptype.php.
oxERPType._preSaveObject | ( | $ | oShopObject, | |
$ | aData | |||
) | [protected] |
prepares object for saving in shop returns true if save can proceed further
$oShopObject | ||
$aData |
Reimplemented in oxERPType_User.
Definition at line 465 of file oxerptype.php.
oxERPType.saveObject | ( | $ | aData, | |
$ | blAllowCustomShopId | |||
) |
saves data by calling object saving
array | $aData | |
bool | $blAllowCustomShopId |
Definition at line 478 of file oxerptype.php.
oxERPType._postSaveObject | ( | $ | oShopObject, | |
$ | aData | |||
) | [protected] |
post saving hook. can finish transactions if needed or ajust related data
oxBase | $oShopObject | |
data | $aData |
Reimplemented in oxERPType_Order.
Definition at line 520 of file oxerptype.php.
oxERPType.$ERROR_WRONG_SHOPID = "Wrong shop id, operation not allowed!" [static] |
Definition at line 5 of file oxerptype.php.
oxERPType.$_sTableName = null [protected] |
Definition at line 7 of file oxerptype.php.
oxERPType.$_sFunctionSuffix = null [protected] |
Definition at line 8 of file oxerptype.php.
oxERPType.$_aFieldList = null [protected] |
Definition at line 9 of file oxerptype.php.
oxERPType.$_aKeyFieldList = null [protected] |
Definition at line 10 of file oxerptype.php.
oxERPType.$_sShopObjectName = null [protected] |
Definition at line 11 of file oxerptype.php.
oxERPType.$_blRestrictedByShopId = false [protected] |
Definition at line 18 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 25 of file oxerptype.php.