Пример #1
0
 public function quantity_get()
 {
     $status = 404;
     $return["data"] = "";
     $return["result"] = "NOOK";
     $userId = $this->get("userId");
     $quantity = CI_Message::getQuantityUnreadMessages($userId);
     if (isset($quantity)) {
         $status = 200;
         $return["data"] = $quantity;
         $return["result"] = "OK";
     }
     $this->response($return, $status);
 }