// cz zawartoci pliku pominito
   . . .
      die(" Bd odczytu danych dla numeru telefonu $phoneID");
   }
   return pg_fetch_assoc($res);
}

public static function getEntityData($entityID) {
   $sql = "SELECT * FROM \"jednostka\" WHERE\"jednostka_id\" =$entityID";
   $res = pg_query(DataManager::_getConnection(),$sql);
   if(! ($res && pg_num_rows($res))) {
      die("Bd odczytu jednostki $entityID");
   }
   return pg_fetch_assoc($res);
}
?>