src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
public function SendReviewCommentNotification($oComment)
    {
        if ($this->AllowSendAuthorReviewCommentNotification()) {
            $sAuthorEmail = $this->GetSendReviewCommentNotificationEmail();
            if (TTools::IsValidEMail($sAuthorEmail)) {
                $oMail = TDataMailProfile::GetProfile('review-comment');
                $aData = array();
                $oArticle = &$this->GetFieldShopArticle();
                $aData['sArticleName'] = $oArticle->GetName();
                $aData['sReviewTitle'] = $this->fieldTitle;
                $aData['sReviewText'] = $this->fieldComment;
                $aData['sCommentText'] = $oComment->fieldComment;
                $oMail->AddDataArray($aData);
                $oMail->ChangeToAddress($this->fieldAuthorEmail, $this->fieldAuthorName);
                $oMail->SendUsingObjectView('emails', 'Customer');
            }
        }
    }
public function SendReviewCommentNotification($oComment)
    {
        if ($this->AllowSendAuthorReviewCommentNotification()) {
            $sAuthorEmail = $this->GetSendReviewCommentNotificationEmail();
            if (TTools::IsValidEMail($sAuthorEmail)) {
                $oMail = TDataMailProfile::GetProfile('review-comment');
                $aData = array();
                $oArticle = &$this->GetFieldShopArticle();
                $aData['sArticleName'] = $oArticle->GetName();
                $aData['sReviewTitle'] = $this->fieldTitle;
                $aData['sReviewText'] = $this->fieldComment;
                $aData['sCommentText'] = $oComment->fieldComment;
                $oMail->AddDataArray($aData);
                $oMail->ChangeToAddress($this->fieldAuthorEmail, $this->fieldAuthorName);
                $oMail->SendUsingObjectView('emails', 'Customer');
            }
        }
    }
public function SendReviewCommentNotification ( $ oComment ) { if ( $ this -> AllowSendAuthorReviewCommentNotification ( ) ) { $ sAuthorEmail = $ this -> GetSendReviewCommentNotificationEmail ( ) ; if ( TTools :: IsValidEMail ( $ sAuthorEmail ) ) { $ oMail = TDataMailProfile :: GetProfile ( 'review-comment' ) ; $ aData = array ( ) ; $ oArticle = & $ this -> GetFieldShopArticle ( ) ; $ aData [ 'sArticleName' ] = $ oArticle -> GetName ( ) ; $ aData [ 'sReviewTitle' ] = $ this -> fieldTitle ; $ aData [ 'sReviewText' ] = $ this -> fieldComment ; $ aData [ 'sCommentText' ] = $ oComment -> fieldComment ; $ oMail -> AddDataArray ( $ aData ) ; $ oMail -> ChangeToAddress ( $ this -> fieldAuthorEmail , $ this -> fieldAuthorName ) ; $ oMail -> SendUsingObjectView ( 'emails' , 'Customer' ) ; } } }
Send comment notification to review owner.
Send comment notification to owner only if owner set the option for the review.

@param TdbPkgComment $oComment
Send comment notification to review owner . Send comment notification to owner only if owner set the option for the review .