Esempio n. 1
0
 /**
  * Sets the user's rating for an item.
  *
  * @param int $iid the item to rate
  * @param number $vote the score given by the user for the item
  * 
  * public function ratings_set($iid, $vote)
  */
 public function execute()
 {
     $ret = Api_Bo_Ratings::setRating($this->getAppId(), $this->getUserId(), $this->iid, $this->vote);
     $response['result'] = $ret ? '1' : '0';
     return $response;
 }