src/ShopArticleReviewBundle/objects/WebModules/MTPkgShopArticleReviewCore/MTPkgShopArticleReviewCore.class.php
public function DeleteReview()
    {
        $oGlobal = TGlobal::instance();
        $oMsgManager = TCMSMessageManager::GetInstance();
        if ($oGlobal->UserDataExists(TdbShopArticleReview::URL_PARAM_ACTION_ID)) {
            $this->DeleteReviewFromActionId();
        } elseif ($oGlobal->UserDataExists(TdbShopArticleReview::URL_PARAM_REVIEW_ID)) {
            $this->DeleteReviewFromOwner();
        } else {
            $oMsgManager->AddMessage(self::MSG_CONSUMER_NAME, 'ARTICLE-REVIEW-ACTION-MISSING-PARAMETER');
        }
        $this->RedirectToItemPage();
    }
public function DeleteReview()
    {
        $oGlobal = TGlobal::instance();
        $oMsgManager = TCMSMessageManager::GetInstance();
        if ($oGlobal->UserDataExists(TdbShopArticleReview::URL_PARAM_ACTION_ID)) {
            $this->DeleteReviewFromActionId();
        } elseif ($oGlobal->UserDataExists(TdbShopArticleReview::URL_PARAM_REVIEW_ID)) {
            $this->DeleteReviewFromOwner();
        } else {
            $oMsgManager->AddMessage(self::MSG_CONSUMER_NAME, 'ARTICLE-REVIEW-ACTION-MISSING-PARAMETER');
        }
        $this->RedirectToItemPage();
    }
public function DeleteReview ( ) { $ oGlobal = TGlobal :: instance ( ) ; $ oMsgManager = TCMSMessageManager :: GetInstance ( ) ; if ( $ oGlobal -> UserDataExists ( TdbShopArticleReview :: URL_PARAM_ACTION_ID ) ) { $ this -> DeleteReviewFromActionId ( ) ; } elseif ( $ oGlobal -> UserDataExists ( TdbShopArticleReview :: URL_PARAM_REVIEW_ID ) ) { $ this -> DeleteReviewFromOwner ( ) ; } else { $ oMsgManager -> AddMessage ( self :: MSG_CONSUMER_NAME , 'ARTICLE-REVIEW-ACTION-MISSING-PARAMETER' ) ; } $ this -> RedirectToItemPage ( ) ; }
Deletes one review.
This function can only be called with valid action id or from owning user.
Deletes one review . This function can only be called with valid action id or from owning user .