Example #1
0
 /**
  * @param mixed $id
  * @throws Logic_WebService_Element_Service_Exception
  * @return Base_Db_Table_Row
  */
 public function getService($id)
 {
     $results = is_integer($id) ? $this->_model->getService($id) : $this->_model->getServiceByHash($id);
     if (!$results) {
         throw new Logic_WebService_Element_Service_Exception('Nie ma takiej uslugi #' . $id, 406);
     }
     $this->_params = $results;
     return $results;
 }