예제 #1
0
파일: Client.php 프로젝트: knatorski/SMS
 /**
  * @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;
 }