src/ShopArticleReviewBundle/objects/WebModules/MTPkgShopArticleReviewCore/MTPkgShopArticleReviewCore.class.php
protected function DeleteReviewFromOwner()
    {
        $oReviewItem = TdbShopArticleReview::GetNewInstance();
        $oGlobal = TGlobal::instance();
        $oMsgManager = TCMSMessageManager::GetInstance();
        if ($oReviewItem->Load($oGlobal->GetUserData(TdbShopArticleReview::URL_PARAM_REVIEW_ID)) && $oReviewItem->IsOwner()) {
            $this->DeleteConnectedComments($oReviewItem);
            $oReviewItem->AllowEditByAll(true);
            $oReviewItem->Delete();
            $oMsgManager->AddMessage(self::MSG_CONSUMER_NAME, 'ARTICLE-REVIEW-DELETE-SUCCESS');
        } else {
            $oMsgManager->AddMessage(self::MSG_CONSUMER_NAME, 'ARTICLE-REVIEW-ACTION-REVIEW-NOT-FOUND');
        }
    }
protected function DeleteReviewFromOwner()
    {
        $oReviewItem = TdbShopArticleReview::GetNewInstance();
        $oGlobal = TGlobal::instance();
        $oMsgManager = TCMSMessageManager::GetInstance();
        if ($oReviewItem->Load($oGlobal->GetUserData(TdbShopArticleReview::URL_PARAM_REVIEW_ID)) && $oReviewItem->IsOwner()) {
            $this->DeleteConnectedComments($oReviewItem);
            $oReviewItem->AllowEditByAll(true);
            $oReviewItem->Delete();
            $oMsgManager->AddMessage(self::MSG_CONSUMER_NAME, 'ARTICLE-REVIEW-DELETE-SUCCESS');
        } else {
            $oMsgManager->AddMessage(self::MSG_CONSUMER_NAME, 'ARTICLE-REVIEW-ACTION-REVIEW-NOT-FOUND');
        }
    }
protected function DeleteReviewFromOwner ( ) { $ oReviewItem = TdbShopArticleReview :: GetNewInstance ( ) ; $ oGlobal = TGlobal :: instance ( ) ; $ oMsgManager = TCMSMessageManager :: GetInstance ( ) ; if ( $ oReviewItem -> Load ( $ oGlobal -> GetUserData ( TdbShopArticleReview :: URL_PARAM_REVIEW_ID ) ) && $ oReviewItem -> IsOwner ( ) ) { $ this -> DeleteConnectedComments ( $ oReviewItem ) ; $ oReviewItem -> AllowEditByAll ( true ) ; $ oReviewItem -> Delete ( ) ; $ oMsgManager -> AddMessage ( self :: MSG_CONSUMER_NAME , 'ARTICLE-REVIEW-DELETE-SUCCESS' ) ; } else { $ oMsgManager -> AddMessage ( self :: MSG_CONSUMER_NAME , 'ARTICLE-REVIEW-ACTION-REVIEW-NOT-FOUND' ) ; } }
Deletes one review if owner is logged in.
Deletes one review if owner is logged in .