Beispiel #1
0
 private function check($lastnum)
 {
     $db = new DbConnection();
     $result = $db->read($lastnum);
     if (!$result instanceof Error) {
         $this->response["success"] = true;
         $this->response["messages"] = $result;
     } else {
         $this->response["success"] = false;
         $this->response["error"] = $result;
     }
 }