Ejemplo n.º 1
0
 /**
  * @param string $hash
  * @throws Logic_WebService_Element_Client_Exception
  * @return Base_Db_Table_Row
  */
 public function checkHash($hash)
 {
     if (empty($hash)) {
         throw new Logic_WebService_Element_Client_Exception('Nieprawidlowy parametr hash: ' . $hash, 401);
     }
     $results = $this->_model->getClientByHash($hash);
     if (!$results) {
         throw new Logic_WebService_Element_Client_Exception('Nie znaleziono klienta o podanym parametrze hash: ' . $hash, 402);
     }
     $this->_params = $results;
     return $results;
 }