source/Application/Controller/Admin/CategoryMain.php
public function save()
    {
        parent::save();

        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $soxId = $this->getEditObjectId();

        $aParams = $this->_parseRequestParametersForSave(
            $myConfig->getRequestParameter("editval")
        );

        /** @var \OxidEsales\Eshop\Application\Model\Category $oCategory */
        $oCategory = $this->createCategory();

        if ($soxId != self::NEW_CATEGORY_ID) {
            $this->resetCounter("catArticle", $soxId);
            $this->resetCategoryPictures($oCategory, $aParams, $soxId);
        }

        //Disable editing for derived items
        if ($oCategory->isDerived()) {
            return;
        }

        $oCategory = $this->updateCategoryOnSave($oCategory, $aParams);

        $oCategory->save();

        $this->setEditObjectId($oCategory->getId());
    }
public function save()
    {
        parent::save();

        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $soxId = $this->getEditObjectId();

        $aParams = $this->_parseRequestParametersForSave(
            $myConfig->getRequestParameter("editval")
        );

        /** @var \OxidEsales\Eshop\Application\Model\Category $oCategory */
        $oCategory = $this->createCategory();

        if ($soxId != self::NEW_CATEGORY_ID) {
            $this->resetCounter("catArticle", $soxId);
            $this->resetCategoryPictures($oCategory, $aParams, $soxId);
        }

        //Disable editing for derived items
        if ($oCategory->isDerived()) {
            return;
        }

        $oCategory = $this->updateCategoryOnSave($oCategory, $aParams);

        $oCategory->save();

        $this->setEditObjectId($oCategory->getId());
    }
public function save ( ) { parent :: save ( ) ; $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ soxId = $ this -> getEditObjectId ( ) ; $ aParams = $ this -> _parseRequestParametersForSave ( $ myConfig -> getRequestParameter ( "editval" ) ) ; /** @var \OxidEsales\Eshop\Application\Model\Category $oCategory */ $ oCategory = $ this -> createCategory ( ) ; if ( $ soxId != self :: NEW_CATEGORY_ID ) { $ this -> resetCounter ( "catArticle" , $ soxId ) ; $ this -> resetCategoryPictures ( $ oCategory , $ aParams , $ soxId ) ; } //Disable editing for derived items if ( $ oCategory -> isDerived ( ) ) { return ; } $ oCategory = $ this -> updateCategoryOnSave ( $ oCategory , $ aParams ) ; $ oCategory -> save ( ) ; $ this -> setEditObjectId ( $ oCategory -> getId ( ) ) ; }
Saves article category data.

@return mixed
Saves article category data .