/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxobject2category'; $this->_aKeyFieldList = array('OXOBJECTID' => 'OXOBJECTID', 'OXCATNID' => 'OXCATNID', 'OXSHOPID' => 'OXSHOPID'); unset($this->_aKeyFieldList['OXSHOPID']); }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxorder'; $this->_sShopObjectName = 'oxorder'; $this->_blRestrictedByShopId = true; }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxprice2article'; $this->_blRestrictedByShopId = true; $this->_aKeyFieldList = array('OXID' => 'OXID'); }
/** * Basic access check for writing data, checks for same shopid, should be overridden if field oxshopid does not exist * * @param oxBase $oObj loaded shop object * @param array $aData fields to be written, null for default * * @throws Exception on now access * * @return null */ public function checkWriteAccess($oObj, $aData = null) { return; $myConfig = oxConfig::getInstance(); if (!$myConfig->getConfigParam('blMallUsers')) { parent::checkWriteAccess($oObj, $aData); } }
/** * issued before saving an object. can modify aData for saving * * @param oxBase $oShopObject shop object * @param array $aData data to prepare * @param bool $blAllowCustomShopId if allow custom shop id * * @return array */ protected function _preAssignObject($oShopObject, $aData, $blAllowCustomShopId) { $aData = parent::_preAssignObject($oShopObject, $aData, $blAllowCustomShopId); if (!$aData['OXPARENTID']) { $aData['OXPARENTID'] = 'oxrootid'; } return $aData; }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxattribute'; $this->_sShopObjectName = 'oxattribute'; }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxvendor'; $this->_sShopObjectName = 'oxvendor'; }
/** * issued before saving an object. can modify aData for saving * * @param oxBase $oShopObject shop object * @param array $aData data to prepare * @param bool $blAllowCustomShopId if allow custom shop id * * @return array */ protected function _preAssignObject($oShopObject, $aData, $blAllowCustomShopId) { if (!isset($aData['OXSTOCKFLAG'])) { if (!$aData['OXID'] || !$oShopObject->exists($aData['OXID'])) { // default value is 1 according to eShop admin functionality $aData['OXSTOCKFLAG'] = 1; } } $aData = parent::_preAssignObject($oShopObject, $aData, $blAllowCustomShopId); return $aData; }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxaccessoire2article'; }
/** * Imports order status. Returns import status (TRUE if success) * * @param object $oType type object * @param object $aRow db row array * * @return bool */ protected function _importOrderStatus(oxERPType $oType, $aRow) { $oOrderArt = oxNew("oxorderarticle", "core"); $oOrderArt->load($aRow['OXID']); if ($oOrderArt->getId()) { try { if ($this->_sCurrVersion != "0.1") { $oType->checkWriteAccess($oOrderArt->getId()); } // store status $aStatuses = unserialize($oOrderArt->oxorderarticles__oxerpstatus->value); $oStatus = new stdClass(); $oStatus->STATUS = $aRow['OXERPSTATUS_STATUS']; $oStatus->date = $aRow['OXERPSTATUS_TIME']; $oStatus->trackingid = $aRow['OXERPSTATUS_TRACKID']; $aStatuses[$aRow['OXERPSTATUS_TIME']] = $oStatus; $oOrderArt->oxorderarticles__oxerpstatus = new oxField(serialize($aStatuses), oxField::T_RAW); $oOrderArt->save(); return true; } catch (Exception $ex) { return false; } } return false; }
/** * issued before saving an object. can modify aData for saving * * @param oxBase $oShopObject oxBase child for object * @param array $aData data for object * @param bool $blAllowCustomShopId if true then AllowCustomShopId * * @return array */ protected function _preAssignObject($oShopObject, $aData, $blAllowCustomShopId) { $aData = parent::_preAssignObject($oShopObject, $aData, $blAllowCustomShopId); // check if data is not serialized $aPersVals = @unserialize($aData['OXPERSPARAM']); if (!is_array($aPersVals)) { // data is a string with | separation, prepare for oxid $aPersVals = explode("|", $aData['OXPERSPARAM']); $aData['OXPERSPARAM'] = serialize($aPersVals); } if (isset($aData['OXORDERSHOPID'])) { $aData['OXORDERSHOPID'] = 'oxbaseshop'; } return $aData; }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxobject2article'; $this->_aKeyFieldList = array('OXARTICLENID' => 'OXARTICLENID', 'OXOBJECTID' => 'OXOBJECTID'); }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxactions2article'; $this->_blRestrictedByShopId = true; }
/** * class constructor * * @return null */ public function __construct() { parent::__construct(); $this->_sTableName = 'oxartextends'; }