Exemplo n.º 1
0
 /**
  * @param $request
  * @return mixed
  * @throws \Exception
  */
 public function getRequest($request)
 {
     $this->resetResponse();
     $this->addShopRequestCount();
     $query = $this->db->query($request);
     if (!$query) {
         $errorInfo = $this->db->errorInfo();
         $this->error = "Not a valid item request! : " . $errorInfo[2];
         return;
     }
     $response = $query->fetch();
     if ($response) {
         $this->response = $response;
     }
     return parent::getRequest($request);
 }