OXID eShop CE  4.9.5
 All Classes Files Functions Variables Pages
oxERPType_Article Class Reference
+ Inheritance diagram for oxERPType_Article:
+ Collaboration diagram for oxERPType_Article:

Public Member Functions

 __construct ()
 checkWriteAccess ($oObj, $aData=null)
- Public Member Functions inherited from oxERPType
 getFunctionSuffix ()
 getShopObjectName ()
 getBaseTableName ()
 setFunctionSuffix ($sNew)
 setFieldList ($aFieldList)
 getTableName ($iShopID=null, $iLanguage=0)
 getSQL ($sWhere, $iLanguage=0, $iShopId=1)
 getSortString ($sFieldName=null, $sType=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)

Protected Member Functions

 _preAssignObject ($oShopObject, $aData, $blAllowCustomShopId)
 _postSaveObject ($oShopObject, $aData)
- Protected Member Functions inherited from oxERPType
 _getSqlFieldName ($sField, $iLanguage=0, $iShopID=1)
 _isAllowedToEdit ($iShopId)
 _directSqlCheckForDeletion ($sId)
 _preSaveObject ($oShopObject, $aData)

Additional Inherited Members

- Static Public Attributes inherited from oxERPType
static $ERROR_WRONG_SHOPID = "Wrong shop id, operation not allowed!"
- Protected Attributes inherited from oxERPType
 $_sTableName = null
 $_sFunctionSuffix = null
 $_aFieldList = null
 $_aKeyFieldList = null
 $_sShopObjectName = null
 $_blRestrictedByShopId = false
 $_aFieldListVersions = null

Detailed Description

article type subclass

Definition at line 104 of file oxerptype_article.php.

Constructor & Destructor Documentation

oxERPType_Article::__construct ( )

class constructor

Returns
null

Reimplemented from oxERPType.

Definition at line 112 of file oxerptype_article.php.

Member Function Documentation

oxERPType_Article::_postSaveObject (   $oShopObject,
  $aData 
)
protected

post saving hook. can finish transactions if needed or ajust related data

Parameters
oxBase$oShopObjectshop object
data$aDatadata to save
Returns
mixed data to return

Reimplemented from oxERPType.

Definition at line 151 of file oxerptype_article.php.

oxERPType_Article::_preAssignObject (   $oShopObject,
  $aData,
  $blAllowCustomShopId 
)
protected

issued before saving an object. can modify aData for saving

Parameters
oxBase$oShopObjectshop object
array$aDatadata to prepare
bool$blAllowCustomShopIdif allow custom shop id
Returns
array

Reimplemented from oxERPType.

Definition at line 129 of file oxerptype_article.php.

oxERPType_Article::checkWriteAccess (   $oObj,
  $aData = null 
)

Basic access check for writing data. For oxarticle we allow super admin to change subshop oxarticle fields discribed in config option aMultishopArticleFields.

Parameters
oxBase$oObjloaded shop object
array$aDatafields to be written, null for default
Exceptions
Exceptionon now access
Returns
null

Reimplemented from oxERPType.

Definition at line 172 of file oxerptype_article.php.


The documentation for this class was generated from the following file: