Esempio n. 1
0
 /**
  * Returns the average rating for this item.  If uids is !empty($uids) then it returns the average rating for the item
  * with the provided uids.
  *
  * @param unknown_type $app_id
  * @param unknown_type $item_id
  * @param unknown_type $uids
  * @return unknown
  */
 public static function getAverage($app_id, $item_id, $uids)
 {
     if (!empty($uids)) {
         return Api_Dao_Ratings::getAverageRatingByUids($app_id, $item_id, $uids);
     } else {
         return Api_Dao_Ratings::getAverageRating($app_id, $item_id);
     }
 }