@@ -88,6 +88,10 @@ discard block |
||
88 | 88 | 'y' => 'Yagi At QTH'); |
89 | 89 | |
90 | 90 | |
91 | + /** |
|
92 | + * @param integer $n |
|
93 | + * @param integer $s |
|
94 | + */ |
|
91 | 95 | private function urshift($n, $s) { |
92 | 96 | return ($n >= 0) ? ($n >> $s) : |
93 | 97 | (($n & 0x7fffffff) >> $s) | |
@@ -442,6 +446,9 @@ discard block |
||
442 | 446 | } |
443 | 447 | } |
444 | 448 | |
449 | + /** |
|
450 | + * @param string $data |
|
451 | + */ |
|
445 | 452 | function send($data) { |
446 | 453 | $send = socket_send( $this->socket , $data , strlen($data),0); |
447 | 454 | if ($send === FALSE) $this->connect(); |
@@ -90,6 +90,10 @@ discard block |
||
90 | 90 | return strlen($headerLine); // Needed by curl |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $url |
|
95 | + * @param string $file |
|
96 | + */ |
|
93 | 97 | public static function download($url, $file, $referer = '') { |
94 | 98 | global $globalDebug; |
95 | 99 | $fp = fopen($file, 'w'); |
@@ -190,7 +194,7 @@ discard block |
||
190 | 194 | * Check is distance realistic |
191 | 195 | * @param int $timeDifference the time between the reception of both messages |
192 | 196 | * @param float $distance distance covered |
193 | - * @return whether distance is realistic |
|
197 | + * @return boolean distance is realistic |
|
194 | 198 | */ |
195 | 199 | public function withinThreshold ($timeDifference, $distance) { |
196 | 200 | $x = abs($timeDifference); |
@@ -213,6 +217,9 @@ discard block |
||
213 | 217 | } |
214 | 218 | |
215 | 219 | |
220 | + /** |
|
221 | + * @param string $latlong |
|
222 | + */ |
|
216 | 223 | public function convertDec($dms,$latlong) { |
217 | 224 | if ($latlong == 'latitude') { |
218 | 225 | $deg = substr($dms, 0, 2); |
@@ -224,6 +231,9 @@ discard block |
||
224 | 231 | return $deg+(($min*60)/3600); |
225 | 232 | } |
226 | 233 | |
234 | + /** |
|
235 | + * @param string $latlong |
|
236 | + */ |
|
227 | 237 | public function convertDM($coord,$latlong) { |
228 | 238 | if ($latlong == 'latitude') { |
229 | 239 | if ($coord < 0) $NSEW = 'S'; |
@@ -352,7 +362,7 @@ discard block |
||
352 | 362 | /** |
353 | 363 | * Returns list of available locales |
354 | 364 | * |
355 | - * @return array |
|
365 | + * @return string[] |
|
356 | 366 | */ |
357 | 367 | public function listLocaleDir() |
358 | 368 | { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * Get SQL query part for filter used |
17 | 17 | * @param Array $filter the filter |
18 | - * @return Array the SQL part |
|
18 | + * @return string the SQL part |
|
19 | 19 | */ |
20 | 20 | |
21 | 21 | public function getFilter($filter = array(),$where = false,$and = false) { |
@@ -552,25 +552,6 @@ discard block |
||
552 | 552 | * |
553 | 553 | * @param String $fammarine_id the ID |
554 | 554 | * @param String $ident the marine ident |
555 | - * @param String $departure_airport_icao the departure airport |
|
556 | - * @param String $arrival_airport_icao the arrival airport |
|
557 | - * @param String $latitude latitude of flight |
|
558 | - * @param String $longitude latitude of flight |
|
559 | - * @param String $waypoints waypoints of flight |
|
560 | - * @param String $heading heading of flight |
|
561 | - * @param String $groundspeed speed of flight |
|
562 | - * @param String $date date of flight |
|
563 | - * @param String $departure_airport_time departure time of flight |
|
564 | - * @param String $arrival_airport_time arrival time of flight |
|
565 | - * @param String $squawk squawk code of flight |
|
566 | - * @param String $route_stop route stop of flight |
|
567 | - * @param String $highlight highlight or not |
|
568 | - * @param String $ModeS ModesS code of flight |
|
569 | - * @param String $registration registration code of flight |
|
570 | - * @param String $pilot_id pilot id of flight (for virtual airlines) |
|
571 | - * @param String $pilot_name pilot name of flight (for virtual airlines) |
|
572 | - * @param String $verticalrate vertival rate of flight |
|
573 | - * @return String success or false |
|
574 | 555 | */ |
575 | 556 | public function addMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $mmsi = '',$type = '',$typeid = '',$imo = '',$callsign = '',$arrival_code = '',$arrival_date = '',$status = '',$format_source = '', $source_name = '') |
576 | 557 | { |
@@ -1444,7 +1425,7 @@ discard block |
||
1444 | 1425 | /** |
1445 | 1426 | * Parses the direction degrees to working |
1446 | 1427 | * |
1447 | - * @param Float $direction the direction in degrees |
|
1428 | + * @param integer $direction the direction in degrees |
|
1448 | 1429 | * @return Array the direction information |
1449 | 1430 | * |
1450 | 1431 | */ |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Get SQL query part for filter used |
16 | 16 | * @param Array $filter the filter |
17 | - * @return Array the SQL part |
|
17 | + * @return string the SQL part |
|
18 | 18 | */ |
19 | 19 | public function getFilter($filter = array(),$where = false,$and = false) { |
20 | 20 | global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver; |
@@ -762,10 +762,6 @@ discard block |
||
762 | 762 | * |
763 | 763 | * @param String $fammarine_id the ID from flightaware |
764 | 764 | * @param String $ident the flight ident |
765 | - * @param String $aircraft_icao the aircraft type |
|
766 | - * @param String $departure_airport_icao the departure airport |
|
767 | - * @param String $arrival_airport_icao the arrival airport |
|
768 | - * @return String success or false |
|
769 | 765 | * |
770 | 766 | */ |
771 | 767 | public function addLiveMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $putinarchive = false, $mmsi = '',$type = '',$typeid = '',$imo = '', $callsign = '',$arrival_code = '',$arrival_date = '',$status = '',$noarchive = false,$format_source = '', $source_name = '', $over_country = '') |
@@ -46,6 +46,10 @@ |
||
46 | 46 | |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $id |
|
51 | + * @param string $ident |
|
52 | + */ |
|
49 | 53 | public function get_Schedule($id,$ident) { |
50 | 54 | global $globalDebug, $globalFork, $globalSchedulesFetch; |
51 | 55 | // Get schedule here, so it's done only one time |