source/Application/Controller/Admin/ArticlePictures.php
protected function _deleteMainIcon($oArticle)
    {
        if ($this->canDeleteMainIcon($oArticle)) {
            if (!$oArticle->isDerived()) {
                $oPicHandler = \OxidEsales\Eshop\Core\Registry::getPictureHandler();
                $oPicHandler->deleteMainIcon($oArticle);
            }

            //reseting field
            $oArticle->oxarticles__oxicon = new \OxidEsales\Eshop\Core\Field();
        }
    }
protected function _deleteMainIcon($oArticle)
    {
        if ($this->canDeleteMainIcon($oArticle)) {
            if (!$oArticle->isDerived()) {
                $oPicHandler = \OxidEsales\Eshop\Core\Registry::getPictureHandler();
                $oPicHandler->deleteMainIcon($oArticle);
            }

            //reseting field
            $oArticle->oxarticles__oxicon = new \OxidEsales\Eshop\Core\Field();
        }
    }
protected function _deleteMainIcon ( $ oArticle ) { if ( $ this -> canDeleteMainIcon ( $ oArticle ) ) { if ( ! $ oArticle -> isDerived ( ) ) { $ oPicHandler = \ OxidEsales \ Eshop \ Core \ Registry :: getPictureHandler ( ) ; $ oPicHandler -> deleteMainIcon ( $ oArticle ) ; } //reseting field $ oArticle -> oxarticles__oxicon = new \ OxidEsales \ Eshop \ Core \ Field ( ) ; } }
Deletes main icon file

@param \OxidEsales\Eshop\Application\Model\Article $oArticle article object
Deletes main icon file