OXID eShop CE
6.1.5
|
Public Member Functions | |
getBaseTableName () | |
setFieldList ($aFieldList) | |
checkWriteAccess ($shopObject, $data=null) | |
checkCreateAccess ($data) | |
import ($data) | |
getRightFields () | |
getFieldList () | |
getKeyFields () | |
Protected Member Functions | |
getShopObjectName () | |
getTableName () | |
preAssignObject ($shopObject, $data, $allowCustomShopId) | |
preSaveObject ($shopObject, $data) | |
saveObject ($data, $allowCustomShopId) | |
postSaveObject ($shopObject, $data) | |
getOxidFromKeyFields ($data) | |
isAllowedToEdit ($shopId) | |
checkIdField ($id) | |
createShopObject () | |
Protected Attributes | |
$tableName = null | |
$fieldList = null | |
$keyFieldList = null | |
$shopObjectName = null | |
Main import object - includes basic implementations of methods.
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::checkCreateAccess | ( | $data | ) |
Basic access check for creating new objects
array | $data | fields to be written |
Exception | on now access |
|
protected |
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::checkWriteAccess | ( | $shopObject, | |
$data = null |
|||
) |
Basic access check for writing data, checks for same shopId, should be overridden if field oxshopid does not exist.
\OxidEsales\Eshop\Core\Model\BaseModel | $shopObject | Loaded shop object. |
array | $data | Fields to be written, null for default. |
Exception | on now access |
|
protected |
Creates shop object.
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::getBaseTableName | ( | ) |
Getter for _sTableName
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::getFieldList | ( | ) |
Returns the predefined field list.
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::getKeyFields | ( | ) |
Returns the keylist array.
|
protected |
Returns oxid of this data type from key fields.
array | $data | Data for object. |
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::getRightFields | ( | ) |
Used for the RR implementation, right now not really used.
|
protected |
Getter for _sShopObjectName.
|
protected |
Returns table or View name.
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::import | ( | $data | ) |
Insert or Update a Row into database.
array | $data | Assoc. array with field names, values what should be stored in this table. |
|
protected |
Checks if user is allowed to edit in this shop.
int | $shopId | shop id |
|
protected |
Post saving hook. can finish transactions if needed or adjust related data.
\OxidEsales\Eshop\Core\Model\BaseModel | $shopObject | Shop object. |
array | $data | Data to save. |
|
protected |
Issued before saving an object. can modify aData for saving.
\OxidEsales\Eshop\Core\Model\BaseModel | $shopObject | shop object |
array | $data | data to prepare |
bool | $allowCustomShopId | if allow custom shop id |
|
protected |
Prepares object for saving in shop. Returns true if save can proceed further.
\OxidEsales\Eshop\Core\Model\BaseModel | $shopObject | Shop object. |
array | $data | Data for importing. |
|
protected |
Saves object data.
array | $data | data for saving |
bool | $allowCustomShopId | allow custom shop id |
OxidEsales\EshopCommunity\Core\GenericImport\ImportObject\ImportObject::setFieldList | ( | $aFieldList | ) |
setter for field list
array | $aFieldList | fields to set |
|
protected |
|
protected |
|
protected |
|
protected |