/** * Updating showsuffix field * * @return null */ public function save() { $oManufacturer = oxNew('oxbase'); $oManufacturer->init('oxmanufacturers'); if ($oManufacturer->load($this->getEditObjectId())) { $oManufacturer->oxmanufacturers__oxshowsuffix = new oxField((int) oxConfig::getParameter('blShowSuffix')); $oManufacturer->save(); } return parent::save(); }
/** * Updating showsuffix field * * @return null */ public function save() { $sOxid = $this->getEditObjectId(); $oCategory = oxNew('oxbase'); $oCategory->init('oxcategories'); if ($oCategory->load($sOxid)) { $oCategory->oxcategories__oxshowsuffix = new oxField((int) oxConfig::getParameter('blShowSuffix')); $oCategory->save(); $this->_getEncoder()->markRelatedAsExpired($oCategory); } return parent::save(); }
/** * Updating showsuffix field * * @return null */ public function save() { $oVendor = oxNew('oxBase'); $oVendor->init('oxvendor'); if ($oVendor->load($this->getEditObjectId())) { $sShowSuffixField = 'oxvendor__oxshowsuffix'; $blShowSuffixParameter = oxRegistry::getConfig()->getRequestParameter('blShowSuffix'); $oVendor->{$sShowSuffixField} = new oxField((int) $blShowSuffixParameter); $oVendor->save(); } return parent::save(); }
/** * Updating showsuffix field * * @return null */ public function save() { $sOxid = $this->getEditObjectId(); $oCategory = oxNew('oxCategory'); if ($oCategory->load($sOxid)) { $blShowSuffixParameter = oxRegistry::getConfig()->getRequestParameter('blShowSuffix'); $sShowSuffixField = 'oxcategories__oxshowsuffix'; $oCategory->{$sShowSuffixField} = new oxField((int) $blShowSuffixParameter); $oCategory->save(); $this->_getEncoder()->markRelatedAsExpired($oCategory); } return parent::save(); }