src/ShopBundle/objects/db/TShopArticle.class.php
public function GetReviewAverageScore($bRecount = false)
    {
        if ($bRecount) {
            $oReviews = $this->GetReviewsPublished();

            return $oReviews->GetAverageScore();
        } else {
            return $this->getProductStatsService()->getStats($this->id)->getReviewAverage();
        }
    }
public function GetReviewAverageScore($bRecount = false)
    {
        if ($bRecount) {
            $oReviews = $this->GetReviewsPublished();

            return $oReviews->GetAverageScore();
        } else {
            return $this->getProductStatsService()->getStats($this->id)->getReviewAverage();
        }
    }
public function GetReviewAverageScore ( $ bRecount = false ) { if ( $ bRecount ) { $ oReviews = $ this -> GetReviewsPublished ( ) ; return $ oReviews -> GetAverageScore ( ) ; } else { return $ this -> getProductStatsService ( ) -> getStats ( $ this -> id ) -> getReviewAverage ( ) ; } }
return the average rating of the article based on the customer reviews for the article.

@param bool $bRecount - force a recount of the actual data

@return float
return the average rating of the article based on the customer reviews for the article .