Example #1
0
 public function getSellerMeanRating()
 {
     $mean_rating = SellerFeedback::getMeanRatingForUser($this->sellerID());
     $mean_rating['overall'] = array_sum($mean_rating) / count($mean_rating);
     $mean_rating = array_map(function ($i) {
         return round($i, 1);
     }, $mean_rating);
     return $mean_rating;
 }
Example #2
0
 public function hasSellerFeedback()
 {
     if (!isset($this->has_seller_feedback)) {
         $this->has_seller_feedback = SellerFeedback::existsForAuctionID($this->id);
     }
     return $this->has_seller_feedback;
 }