Пример #1
0
 public function vote_get()
 {
     $status = 404;
     $return["data"] = "";
     $return["result"] = "NOOK";
     $arrOptions['publicationId'] = $this->get('publicationId');
     if ($arrOptions['publicationId'] > 0) {
         $quantityVotes = CI_Request::getVotes($arrOptions['publicationId']);
         if ($quantityVotes) {
             $status = 200;
             $return["result"] = "OK";
             $return["data"] = $quantityVotes;
         }
         $this->response($return, $status);
     }
 }