| 
    OXID eShop CE
    4.10.7
    
   | 
 
 Inheritance diagram for oxERPType:
 Collaboration diagram for oxERPType:Public Member Functions | |
| getFunctionSuffix () | |
| getShopObjectName () | |
| getBaseTableName () | |
| __construct () | |
| setFunctionSuffix ($sNew) | |
| setFieldList ($aFieldList) | |
| getTableName ($iShopID=null, $iLanguage=0) | |
| getSQL ($sWhere, $iLanguage=0, $iShopId=1) | |
| getSortString ($sFieldName=null, $sType=null) | |
| checkWriteAccess ($oObj, $aData=null) | |
| checkCreateAccess ($aData) | |
| getObjectForDeletion ($sId) | |
| checkForDeletion ($sId) | |
| delete ($sID) | |
| deleteObject ($oObj, $sID) | |
| addExportData ($aFields) | |
| addImportData ($aFields) | |
| getRightFields () | |
| getFieldList () | |
| getKeyFields () | |
| getOxidFromKeyFields ($aData) | |
| 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 () | |
main erp type superclass - includes methods abstraction and basic implementation for all erp object types
Definition at line 9 of file oxerptype.php.
| oxERPType::__construct | ( | ) | 
class constructor
Reimplemented in oxERPType_Article, oxERPType_Article2Attribute, oxERPType_Accessoire, oxERPType_Artextends, oxERPType_Article2Action, oxERPType_Article2Category, oxERPType_Attribute, oxERPType_Category, oxERPType_Content, oxERPType_Country, oxERPType_Crossselling, oxERPType_Order, oxERPType_OrderArticle, oxERPType_ScalePrice, oxERPType_User, and oxERPType_Vendor.
Definition at line 67 of file oxerptype.php.
      
  | 
  protected | 
direct sql check if it is allowed to delete the OXID of the current table
| string | $sId | object id | 
| Exception | on no access | 
Definition at line 320 of file oxerptype.php.
      
  | 
  private | 
Creates Array with [iLanguage][sFieldName]
Definition at line 114 of file oxerptype.php.
      
  | 
  protected | 
return sql column name of given table column
| string | $sField | field to get | 
| int | $iLanguage | language id | 
| int | $iShopID | shop id | 
Reimplemented in oxERPType_OrderArticle.
Definition at line 141 of file oxerptype.php.
      
  | 
  protected | 
checks if user is allowed to edit in this shop
| int | $iShopId | shop id | 
Definition at line 297 of file oxerptype.php.
      
  | 
  protected | 
post saving hook. can finish transactions if needed or ajust related data
| oxBase | $oShopObject | shop object | 
| data | $aData | data to save | 
Reimplemented in oxERPType_Article.
Definition at line 650 of file oxerptype.php.
      
  | 
  protected | 
issued before saving an object. can modify aData for saving
| oxBase | $oShopObject | shop object | 
| array | $aData | data to prepare | 
| bool | $blAllowCustomShopId | if allow custom shop id | 
Reimplemented in oxERPType_Article, oxERPType_OrderArticle, and oxERPType_Category.
Definition at line 539 of file oxerptype.php.
      
  | 
  protected | 
prepares object for saving in shop returns true if save can proceed further
| oxBase | $oShopObject | shop object | 
| array | $aData | data for importing | 
Reimplemented in oxERPType_Artextends.
Definition at line 576 of file oxerptype.php.
| oxERPType::addExportData | ( | $aFields | ) | 
We have the possibility to add some data
| array | $aFields | initial data | 
Definition at line 403 of file oxerptype.php.
| oxERPType::addImportData | ( | $aFields | ) | 
allows to modify data before import
| array | $aFields | initial data | 
Definition at line 417 of file oxerptype.php.
| oxERPType::checkCreateAccess | ( | $aData | ) | 
Basic access check for creating new objects
| array | $aData | fields to be written | 
| Exception | on now access | 
Definition at line 244 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 | 
| Exception | on no access | 
Definition at line 344 of file oxerptype.php.
| oxERPType::checkWriteAccess | ( | $oObj, | |
$aData = null  | 
        |||
| ) | 
Basic access check for writing data, checks for same shopid, should be overridden if field oxshopid does not exist
| oxBase | $oObj | loaded shop object | 
| array | $aData | fields to be written, null for default | 
| Exception | on now access | 
Reimplemented in oxERPType_Article, oxERPType_User, and oxERPType_OrderArticle.
Definition at line 228 of file oxerptype.php.
| oxERPType::delete | ( | $sID | ) | 
default deletion of the given OXID in the current table
| string | $sID | object id | 
Definition at line 374 of file oxerptype.php.
| oxERPType::deleteObject | ( | $oObj, | |
| $sID | |||
| ) | 
default delete call to the given object
| object | $oObj | object | 
| string | $sID | object id | 
Definition at line 391 of file oxerptype.php.
| oxERPType::getBaseTableName | ( | ) | 
| oxERPType::getFieldList | ( | ) | 
| oxERPType::getFunctionSuffix | ( | ) | 
| oxERPType::getKeyFields | ( | ) | 
| oxERPType::getObjectForDeletion | ( | $sId | ) | 
checks done to make sure deletion is possible and allowed
| string | $sId | id of object | 
| Exception | on error | 
Definition at line 257 of file oxerptype.php.
| oxERPType::getOxidFromKeyFields | ( | $aData | ) | 
returns oxid of this data type from key fields
| array | $aData | data for object | 
Definition at line 487 of file oxerptype.php.
| oxERPType::getRightFields | ( | ) | 
used for the RR implementation, right now not really used
Definition at line 427 of file oxerptype.php.
| oxERPType::getShopObjectName | ( | ) | 
| 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 203 of file oxerptype.php.
| oxERPType::getSQL | ( | $sWhere, | |
$iLanguage = 0,  | 
        |||
$iShopId = 1  | 
        |||
| ) | 
returns SQL string for this type
| string | $sWhere | where part of sql | 
| int | $iLanguage | language id | 
| int | $iShopId | shop id | 
Reimplemented in oxERPType_OrderArticle, and oxERPType_User.
Definition at line 171 of file oxerptype.php.
| oxERPType::getTableName | ( | $iShopID = null,  | 
        |
$iLanguage = 0  | 
        |||
| ) | 
Returns table or View name
| int | $iShopID | shop id - default is the current shop id | 
| int | $iLanguage | language id | 
Definition at line 100 of file oxerptype.php.
| oxERPType::hasKeyFields | ( | ) | 
| oxERPType::saveObject | ( | $aData, | |
| $blAllowCustomShopId | |||
| ) | 
saves data by calling object saving
| array | $aData | data for saving | 
| bool | $blAllowCustomShopId | allow custom shop id | 
Reimplemented in oxERPType_Artextends.
Definition at line 589 of file oxerptype.php.
| oxERPType::setFieldList | ( | $aFieldList | ) | 
setter for field list
| array | $aFieldList | fields to set | 
Definition at line 87 of file oxerptype.php.
| oxERPType::setFunctionSuffix | ( | $sNew | ) | 
setter for the function prefix
| string | $sNew | new suffix | 
Definition at line 77 of file oxerptype.php.
      
  | 
  protected | 
Definition at line 16 of file oxerptype.php.
      
  | 
  protected | 
Definition at line 32 of file oxerptype.php.
      
  | 
  protected | 
Definition at line 17 of file oxerptype.php.
      
  | 
  protected | 
Definition at line 25 of file oxerptype.php.
      
  | 
  protected | 
Definition at line 15 of file oxerptype.php.
      
  | 
  protected | 
Definition at line 18 of file oxerptype.php.
      
  | 
  protected | 
Definition at line 14 of file oxerptype.php.
      
  | 
  static | 
Definition at line 12 of file oxerptype.php.