source/Application/Model/Actions.php
public function delete($articleId = null)
    {
        $articleId = $articleId ? $articleId : $this->getId();
        if (!$articleId) {
            return false;
        }

        // remove actions from articles also
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sDelete = "delete from oxactions2article where oxactionid = " . $oDb->quote($articleId) . " and oxshopid = '" . $this->getShopId() . "'";
        $oDb->execute($sDelete);

        return parent::delete($articleId);
    }
public function delete($articleId = null)
    {
        $articleId = $articleId ? $articleId : $this->getId();
        if (!$articleId) {
            return false;
        }

        // remove actions from articles also
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sDelete = "delete from oxactions2article where oxactionid = " . $oDb->quote($articleId) . " and oxshopid = '" . $this->getShopId() . "'";
        $oDb->execute($sDelete);

        return parent::delete($articleId);
    }
public function delete ( $ articleId = null ) { $ articleId = $ articleId ? $ articleId : $ this -> getId ( ) ; if ( ! $ articleId ) { return false ; } // remove actions from articles also $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sDelete = "delete from oxactions2article where oxactionid = " . $ oDb -> quote ( $ articleId ) . " and oxshopid = '" . $ this -> getShopId ( ) . "'" ; $ oDb -> execute ( $ sDelete ) ; return parent :: delete ( $ articleId ) ; }
Removes article action, returns true on success. For
performance - you can not load action object - just pass
action ID.

@param string $articleId Object ID

@return bool
Removes article action returns true on success . For performance - you can not load action object - just pass action ID .