source/Core/PictureHandler.php
public function deleteZoomPicture($oObject, $iIndex)
    {
        // checking if oxzoom field exists
        $oDbHandler = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);
        $iZoomPicCount = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iZoomPicCount');

        if ($iIndex > $iZoomPicCount || !$oDbHandler->fieldExists("oxzoom" . $iIndex, "oxarticles")) {
            if ($sZoomPicName = $this->getZoomName($oObject->{"oxarticles__oxpic" . $iIndex}->value, $iIndex)) {
                $sFieldToCheck = "oxpic" . $iIndex;
            } else {
                return;
            }
        } else {
            $sZoomPicName = basename($oObject->{"oxarticles__oxzoom" . $iIndex}->value);
            $sFieldToCheck = "oxzoom" . $iIndex;
        }

        if ($sZoomPicName && $sZoomPicName != "nopic.jpg") {
            // deleting zoom picture
            $sPath = \OxidEsales\Eshop\Core\Registry::getConfig()->getPictureDir(false) . \OxidEsales\Eshop\Core\Registry::getUtilsFile()->getImageDirByType("Z" . $iIndex);
            \OxidEsales\Eshop\Core\Registry::getUtilsPic()->safePictureDelete($sZoomPicName, $sPath, "oxarticles", $sFieldToCheck);
        }
    }
public function deleteZoomPicture($oObject, $iIndex)
    {
        // checking if oxzoom field exists
        $oDbHandler = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);
        $iZoomPicCount = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iZoomPicCount');

        if ($iIndex > $iZoomPicCount || !$oDbHandler->fieldExists("oxzoom" . $iIndex, "oxarticles")) {
            if ($sZoomPicName = $this->getZoomName($oObject->{"oxarticles__oxpic" . $iIndex}->value, $iIndex)) {
                $sFieldToCheck = "oxpic" . $iIndex;
            } else {
                return;
            }
        } else {
            $sZoomPicName = basename($oObject->{"oxarticles__oxzoom" . $iIndex}->value);
            $sFieldToCheck = "oxzoom" . $iIndex;
        }

        if ($sZoomPicName && $sZoomPicName != "nopic.jpg") {
            // deleting zoom picture
            $sPath = \OxidEsales\Eshop\Core\Registry::getConfig()->getPictureDir(false) . \OxidEsales\Eshop\Core\Registry::getUtilsFile()->getImageDirByType("Z" . $iIndex);
            \OxidEsales\Eshop\Core\Registry::getUtilsPic()->safePictureDelete($sZoomPicName, $sPath, "oxarticles", $sFieldToCheck);
        }
    }
public function deleteZoomPicture ( $ oObject , $ iIndex ) { // checking if oxzoom field exists $ oDbHandler = oxNew ( \ OxidEsales \ Eshop \ Core \ DbMetaDataHandler :: class ) ; $ iZoomPicCount = ( int ) \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iZoomPicCount' ) ; if ( $ iIndex > $ iZoomPicCount || ! $ oDbHandler -> fieldExists ( "oxzoom" . $ iIndex , "oxarticles" ) ) { if ( $ sZoomPicName = $ this -> getZoomName ( $ oObject -> { "oxarticles__oxpic" . $ iIndex } -> value , $ iIndex ) ) { $ sFieldToCheck = "oxpic" . $ iIndex ; } else { return ; } } else { $ sZoomPicName = basename ( $ oObject -> { "oxarticles__oxzoom" . $ iIndex } -> value ) ; $ sFieldToCheck = "oxzoom" . $ iIndex ; } if ( $ sZoomPicName && $ sZoomPicName != "nopic.jpg" ) { // deleting zoom picture $ sPath = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getPictureDir ( false ) . \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsFile ( ) -> getImageDirByType ( "Z" . $ iIndex ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsPic ( ) -> safePictureDelete ( $ sZoomPicName , $ sPath , "oxarticles" , $ sFieldToCheck ) ; } }
Deletes custom zoom picture, which name is specified in oxzoom field.

@param \OxidEsales\Eshop\Application\Model\Article $oObject article object
@param int                                         $iIndex  zoom picture index

@return null
Deletes custom zoom picture which name is specified in oxzoom field .