@@ -18,6 +18,10 @@ discard block |
||
18 | 18 | $this->db = $Connection->db(); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $type |
|
23 | + * @param string $stats_date |
|
24 | + */ |
|
21 | 25 | public function addLastStatsUpdate($type,$stats_date) { |
22 | 26 | $query = "DELETE FROM config WHERE name = :type; |
23 | 27 | INSERT INTO config (name,value) VALUES (:type,:stats_date);"; |
@@ -961,6 +965,10 @@ discard block |
||
961 | 965 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
962 | 966 | return $all; |
963 | 967 | } |
968 | + |
|
969 | + /** |
|
970 | + * @param string $type |
|
971 | + */ |
|
964 | 972 | public function deleteStatsByType($type,$stats_airline = '', $filter_name = '') { |
965 | 973 | if ($filter_name == '') $filter_name = $this->filter_name; |
966 | 974 | $query = "DELETE FROM stats WHERE stats_type = :type AND stats_airline = :stats_airline AND filter_name = :filter_name"; |
@@ -972,6 +980,11 @@ discard block |
||
972 | 980 | echo "error : ".$e->getMessage(); |
973 | 981 | } |
974 | 982 | } |
983 | + |
|
984 | + /** |
|
985 | + * @param string $type |
|
986 | + * @param string $year |
|
987 | + */ |
|
975 | 988 | public function getSumStats($type,$year,$stats_airline = '',$filter_name = '',$month = '') { |
976 | 989 | if ($filter_name == '') $filter_name = $this->filter_name; |
977 | 990 | global $globalArchiveMonths, $globalDBdriver; |
@@ -1116,6 +1129,10 @@ discard block |
||
1116 | 1129 | else return 0; |
1117 | 1130 | } |
1118 | 1131 | |
1132 | + /** |
|
1133 | + * @param string $type |
|
1134 | + * @param string $stats_date |
|
1135 | + */ |
|
1119 | 1136 | public function addStat($type,$cnt,$stats_date,$stats_airline = '',$filter_name = '') { |
1120 | 1137 | global $globalDBdriver; |
1121 | 1138 | if ($filter_name == '') $filter_name = $this->filter_name; |
@@ -1169,6 +1186,9 @@ discard block |
||
1169 | 1186 | } |
1170 | 1187 | */ |
1171 | 1188 | |
1189 | + /** |
|
1190 | + * @param string $stats_type |
|
1191 | + */ |
|
1172 | 1192 | public function getStatsSource($stats_type,$year = '',$month = '',$day = '') { |
1173 | 1193 | global $globalDBdriver; |
1174 | 1194 | $query = "SELECT * FROM stats_source WHERE stats_type = :stats_type"; |
@@ -1212,6 +1232,9 @@ discard block |
||
1212 | 1232 | return $all; |
1213 | 1233 | } |
1214 | 1234 | |
1235 | + /** |
|
1236 | + * @param string $stats_type |
|
1237 | + */ |
|
1215 | 1238 | public function addStatSource($data,$source_name,$stats_type,$date) { |
1216 | 1239 | global $globalDBdriver; |
1217 | 1240 | if ($globalDBdriver == 'mysql') { |
@@ -1227,6 +1250,10 @@ discard block |
||
1227 | 1250 | return "error : ".$e->getMessage(); |
1228 | 1251 | } |
1229 | 1252 | } |
1253 | + |
|
1254 | + /** |
|
1255 | + * @param string $type |
|
1256 | + */ |
|
1230 | 1257 | public function addStatFlight($type,$date_name,$cnt,$stats_airline = '',$filter_name = '') { |
1231 | 1258 | $query = "INSERT INTO stats_flight (stats_type,flight_date,cnt,stats_airline,filter_name) VALUES (:type,:flight_date,:cnt,:stats_airline,:filter_name)"; |
1232 | 1259 | $query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt, ':stats_airline' => $stats_airline,':filter_name' => $filter_name); |
@@ -1493,6 +1520,10 @@ discard block |
||
1493 | 1520 | return "error : ".$e->getMessage(); |
1494 | 1521 | } |
1495 | 1522 | } |
1523 | + |
|
1524 | + /** |
|
1525 | + * @param string $type |
|
1526 | + */ |
|
1496 | 1527 | public function deleteStatFlight($type) { |
1497 | 1528 | $query = "DELETE FROM stats_flight WHERE stats_type = :type"; |
1498 | 1529 | $query_values = array(':type' => $type); |
@@ -1503,6 +1534,10 @@ discard block |
||
1503 | 1534 | return "error : ".$e->getMessage(); |
1504 | 1535 | } |
1505 | 1536 | } |
1537 | + |
|
1538 | + /** |
|
1539 | + * @param string $type |
|
1540 | + */ |
|
1506 | 1541 | public function deleteStatAirport($type) { |
1507 | 1542 | $query = "DELETE FROM stats_airport WHERE stats_type = :type"; |
1508 | 1543 | $query_values = array(':type' => $type); |
@@ -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) { |
@@ -486,9 +486,6 @@ discard block |
||
486 | 486 | /** |
487 | 487 | * Update ident spotter data |
488 | 488 | * |
489 | - * @param String $flightaware_id the ID from flightaware |
|
490 | - * @param String $ident the flight ident |
|
491 | - * @return String success or false |
|
492 | 489 | * |
493 | 490 | */ |
494 | 491 | public function updateIdentTrackerData($famtrackid = '', $ident = '',$fromsource = NULL) |
@@ -510,10 +507,6 @@ discard block |
||
510 | 507 | /** |
511 | 508 | * Update latest spotter data |
512 | 509 | * |
513 | - * @param String $flightaware_id the ID from flightaware |
|
514 | - * @param String $ident the flight ident |
|
515 | - * @param String $arrival_airport_icao the arrival airport |
|
516 | - * @return String success or false |
|
517 | 510 | * |
518 | 511 | */ |
519 | 512 | public function updateLatestTrackerData($famtrackid = '', $ident = '', $latitude = '', $longitude = '', $altitude = '', $groundspeed = NULL, $date = '') |
@@ -535,29 +528,6 @@ discard block |
||
535 | 528 | /** |
536 | 529 | * Adds a new spotter data |
537 | 530 | * |
538 | - * @param String $flightaware_id the ID from flightaware |
|
539 | - * @param String $ident the flight ident |
|
540 | - * @param String $aircraft_icao the aircraft type |
|
541 | - * @param String $departure_airport_icao the departure airport |
|
542 | - * @param String $arrival_airport_icao the arrival airport |
|
543 | - * @param String $latitude latitude of flight |
|
544 | - * @param String $longitude latitude of flight |
|
545 | - * @param String $waypoints waypoints of flight |
|
546 | - * @param String $altitude altitude of flight |
|
547 | - * @param String $heading heading of flight |
|
548 | - * @param String $groundspeed speed of flight |
|
549 | - * @param String $date date of flight |
|
550 | - * @param String $departure_airport_time departure time of flight |
|
551 | - * @param String $arrival_airport_time arrival time of flight |
|
552 | - * @param String $squawk squawk code of flight |
|
553 | - * @param String $route_stop route stop of flight |
|
554 | - * @param String $highlight highlight or not |
|
555 | - * @param String $ModeS ModesS code of flight |
|
556 | - * @param String $registration registration code of flight |
|
557 | - * @param String $pilot_id pilot id of flight (for virtual airlines) |
|
558 | - * @param String $pilot_name pilot name of flight (for virtual airlines) |
|
559 | - * @param String $verticalrate vertival rate of flight |
|
560 | - * @return String success or false |
|
561 | 531 | */ |
562 | 532 | public function addTrackerData($famtrackid = '', $ident = '', $latitude = '', $longitude = '', $altitude = '', $heading = '', $groundspeed = '', $date = '', $comment = '', $type = '',$format_source = '', $source_name = '') |
563 | 533 | { |
@@ -1428,7 +1398,7 @@ discard block |
||
1428 | 1398 | /** |
1429 | 1399 | * Parses the direction degrees to working |
1430 | 1400 | * |
1431 | - * @param Float $direction the direction in degrees |
|
1401 | + * @param integer $direction the direction in degrees |
|
1432 | 1402 | * @return Array the direction information |
1433 | 1403 | * |
1434 | 1404 | */ |
@@ -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; |
@@ -759,10 +759,6 @@ discard block |
||
759 | 759 | * |
760 | 760 | * @param String $famtrackid the ID from flightaware |
761 | 761 | * @param String $ident the flight ident |
762 | - * @param String $aircraft_icao the aircraft type |
|
763 | - * @param String $departure_airport_icao the departure airport |
|
764 | - * @param String $arrival_airport_icao the arrival airport |
|
765 | - * @return String success or false |
|
766 | 762 | * |
767 | 763 | */ |
768 | 764 | public function addLiveTrackerData($famtrackid = '', $ident = '', $latitude = '', $longitude = '', $altitude = '', $heading = '', $groundspeed = '', $date = '', $putinarchive = false, $comment = '', $type = '',$noarchive = false,$format_source = '', $source_name = '', $over_country = '') |
@@ -68,6 +68,10 @@ discard block |
||
68 | 68 | 't', 'u', 'v', 'w' // 119 |
69 | 69 | ); // char 64 |
70 | 70 | */ |
71 | + |
|
72 | + /** |
|
73 | + * @param integer $ascii |
|
74 | + */ |
|
71 | 75 | private function asciidec_2_8bit($ascii) { |
72 | 76 | //only process in the following range: 48-87, 96-119 |
73 | 77 | if ($ascii < 48) { } |
@@ -93,6 +97,10 @@ discard block |
||
93 | 97 | return(substr($bin, -6)); |
94 | 98 | } |
95 | 99 | |
100 | + /** |
|
101 | + * @param integer $_start |
|
102 | + * @param integer $_size |
|
103 | + */ |
|
96 | 104 | private function binchar($_str, $_start, $_size) { |
97 | 105 | // ' ' --- '?', // 0x20 - 0x3F |
98 | 106 | // '@' --- '_', // 0x40 - 0x5F |
@@ -118,6 +126,10 @@ discard block |
||
118 | 126 | } |
119 | 127 | |
120 | 128 | // function for decoding the AIS Message ITU Payload |
129 | + |
|
130 | + /** |
|
131 | + * @param string $_aisdata |
|
132 | + */ |
|
121 | 133 | private function decode_ais($_aisdata) { |
122 | 134 | $ro = new stdClass(); // return object |
123 | 135 | $ro->cls = 0; // AIS class undefined, also indicate unparsed msg |
@@ -351,6 +363,12 @@ discard block |
||
351 | 363 | elseif ($code == 99) return 'Other Type, no additional information'; |
352 | 364 | } |
353 | 365 | |
366 | + /** |
|
367 | + * @param string $_itu |
|
368 | + * @param integer $_len |
|
369 | + * @param integer $_filler |
|
370 | + * @param string $aux |
|
371 | + */ |
|
354 | 372 | public function process_ais_itu($_itu, $_len, $_filler, $aux /*, $ais_ch*/) { |
355 | 373 | global $port; // tcpip port... |
356 | 374 | |
@@ -371,6 +389,10 @@ discard block |
||
371 | 389 | |
372 | 390 | // char* - AIS \r terminated string |
373 | 391 | // TCP based streams which send messages in full can use this instead of calling process_ais_buf |
392 | + |
|
393 | + /** |
|
394 | + * @param string $rawdata |
|
395 | + */ |
|
374 | 396 | public function process_ais_raw($rawdata, $aux = '') { // return int |
375 | 397 | static $num_seq; // 1 to 9 |
376 | 398 | static $seq; // 1 to 9 |
@@ -589,6 +611,9 @@ discard block |
||
589 | 611 | return $result; |
590 | 612 | } |
591 | 613 | |
614 | + /** |
|
615 | + * @param string $mmsi |
|
616 | + */ |
|
592 | 617 | public function mmsitype($mmsi) { |
593 | 618 | if (strlen($mmsi) == 9) { |
594 | 619 | if (substr($mmsi,0,3) == '974') return 'EPIRB (Emergency Position Indicating Radio Beacon) AIS'; |
@@ -254,6 +254,7 @@ discard block |
||
254 | 254 | * |
255 | 255 | * @param String $aircraft_registration the registration of the aircraft |
256 | 256 | * @param String $aircraft_name type of the aircraft |
257 | + * @param string $type |
|
257 | 258 | * @return Array the aircraft thumbnail, orignal url and copyright |
258 | 259 | * |
259 | 260 | */ |
@@ -287,6 +288,7 @@ discard block |
||
287 | 288 | * |
288 | 289 | * @param String $registration the registration of the aircraft |
289 | 290 | * @param String $name type of the aircraft |
291 | + * @param string $type |
|
290 | 292 | * @return Array the aircraft thumbnail, orignal url and copyright |
291 | 293 | * |
292 | 294 | */ |
@@ -325,6 +327,7 @@ discard block |
||
325 | 327 | * |
326 | 328 | * @param String $aircraft_registration the registration of the aircraft |
327 | 329 | * @param String $aircraft_name type of the aircraft |
330 | + * @param string $type |
|
328 | 331 | * @return Array the aircraft thumbnail, orignal url and copyright |
329 | 332 | * |
330 | 333 | */ |
@@ -367,6 +370,7 @@ discard block |
||
367 | 370 | * |
368 | 371 | * @param String $aircraft_registration the registration of the aircraft |
369 | 372 | * @param String $aircraft_name type of the aircraft |
373 | + * @param string $type |
|
370 | 374 | * @return Array the aircraft thumbnail, orignal url and copyright |
371 | 375 | * |
372 | 376 | */ |
@@ -401,6 +405,7 @@ discard block |
||
401 | 405 | * |
402 | 406 | * @param String $registration the registration of the aircraft |
403 | 407 | * @param String $name type of the aircraft |
408 | + * @param string $type |
|
404 | 409 | * @return Array the aircraft thumbnail, orignal url and copyright |
405 | 410 | * |
406 | 411 | */ |
@@ -429,6 +434,10 @@ discard block |
||
429 | 434 | return false; |
430 | 435 | } |
431 | 436 | |
437 | + /** |
|
438 | + * @param string $type |
|
439 | + * @param string $aircraft_icao |
|
440 | + */ |
|
432 | 441 | public function fromIvaoMtl($type,$aircraft_icao,$airline_icao) { |
433 | 442 | $Common = new Common(); |
434 | 443 | //echo "\n".'SEARCH IMAGE : http://mtlcatalog.ivao.aero/images/aircraft/'.$aircraft_icao.$airline_icao.'.jpg'; |
@@ -450,6 +459,7 @@ discard block |
||
450 | 459 | * |
451 | 460 | * @param String $aircraft_registration the registration of the aircraft |
452 | 461 | * @param String $aircraft_name type of the aircraft |
462 | + * @param string $type |
|
453 | 463 | * @return Array the aircraft thumbnail, orignal url and copyright |
454 | 464 | * |
455 | 465 | */ |
@@ -482,6 +492,7 @@ discard block |
||
482 | 492 | * |
483 | 493 | * @param String $aircraft_registration the registration of the aircraft |
484 | 494 | * @param String $aircraft_name type of the aircraft |
495 | + * @param string $type |
|
485 | 496 | * @return Array the aircraft thumbnail, orignal url and copyright |
486 | 497 | * |
487 | 498 | */ |
@@ -507,6 +518,7 @@ discard block |
||
507 | 518 | * |
508 | 519 | * @param String $registration the registration of the aircraft/mmsi |
509 | 520 | * @param String $name name |
521 | + * @param string $type |
|
510 | 522 | * @return Array the aircraft thumbnail, orignal url and copyright |
511 | 523 | * |
512 | 524 | */ |
@@ -568,6 +580,7 @@ discard block |
||
568 | 580 | * |
569 | 581 | * @param String $registration the registration of the aircraft |
570 | 582 | * @param String $name type of the aircraft |
583 | + * @param string $type |
|
571 | 584 | * @return Array the aircraft thumbnail, orignal url and copyright |
572 | 585 | * |
573 | 586 | */ |
@@ -14,7 +14,7 @@ |
||
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; |
@@ -10,6 +10,9 @@ discard block |
||
10 | 10 | class update_db { |
11 | 11 | public static $db_sqlite; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $file |
|
15 | + */ |
|
13 | 16 | public static function download($url, $file, $referer = '') { |
14 | 17 | //$file = str_replace('/',DIRECTORY_SEPARATOR,$file); |
15 | 18 | $fp = fopen($file, 'w+'); |
@@ -25,6 +28,9 @@ discard block |
||
25 | 28 | fclose($fp); |
26 | 29 | } |
27 | 30 | |
31 | + /** |
|
32 | + * @param string $in_file |
|
33 | + */ |
|
28 | 34 | public static function gunzip($in_file,$out_file_name = '') { |
29 | 35 | //echo $in_file.' -> '.$out_file_name."\n"; |
30 | 36 | $buffer_size = 4096; // read 4kb at a time |
@@ -46,6 +52,9 @@ discard block |
||
46 | 52 | } |
47 | 53 | } |
48 | 54 | |
55 | + /** |
|
56 | + * @param string $in_file |
|
57 | + */ |
|
49 | 58 | public static function unzip($in_file) { |
50 | 59 | if ($in_file != '' && file_exists($in_file)) { |
51 | 60 | $path = pathinfo(realpath($in_file), PATHINFO_DIRNAME); |
@@ -67,6 +76,9 @@ discard block |
||
67 | 76 | } |
68 | 77 | } |
69 | 78 | |
79 | + /** |
|
80 | + * @param string $database_file |
|
81 | + */ |
|
70 | 82 | public static function retrieve_route_sqlite_to_dest($database_file) { |
71 | 83 | global $globalDebug, $globalTransaction; |
72 | 84 | //$query = 'TRUNCATE TABLE routes'; |
@@ -109,6 +121,10 @@ discard block |
||
109 | 121 | } |
110 | 122 | return ''; |
111 | 123 | } |
124 | + |
|
125 | + /** |
|
126 | + * @param string $database_file |
|
127 | + */ |
|
112 | 128 | public static function retrieve_route_oneworld($database_file) { |
113 | 129 | global $globalDebug, $globalTransaction; |
114 | 130 | //$query = 'TRUNCATE TABLE routes'; |
@@ -150,6 +166,9 @@ discard block |
||
150 | 166 | return ''; |
151 | 167 | } |
152 | 168 | |
169 | + /** |
|
170 | + * @param string $database_file |
|
171 | + */ |
|
153 | 172 | public static function retrieve_route_skyteam($database_file) { |
154 | 173 | global $globalDebug, $globalTransaction; |
155 | 174 | //$query = 'TRUNCATE TABLE routes'; |
@@ -192,6 +211,10 @@ discard block |
||
192 | 211 | } |
193 | 212 | return ''; |
194 | 213 | } |
214 | + |
|
215 | + /** |
|
216 | + * @param string $database_file |
|
217 | + */ |
|
195 | 218 | public static function retrieve_modes_sqlite_to_dest($database_file) { |
196 | 219 | global $globalTransaction; |
197 | 220 | //$query = 'TRUNCATE TABLE aircraft_modes'; |
@@ -258,6 +281,9 @@ discard block |
||
258 | 281 | return ''; |
259 | 282 | } |
260 | 283 | |
284 | + /** |
|
285 | + * @param string $database_file |
|
286 | + */ |
|
261 | 287 | public static function retrieve_modes_flarmnet($database_file) { |
262 | 288 | global $globalTransaction; |
263 | 289 | $Common = new Common(); |
@@ -328,6 +354,9 @@ discard block |
||
328 | 354 | return ''; |
329 | 355 | } |
330 | 356 | |
357 | + /** |
|
358 | + * @param string $database_file |
|
359 | + */ |
|
331 | 360 | public static function retrieve_modes_ogn($database_file) { |
332 | 361 | global $globalTransaction; |
333 | 362 | //$query = 'TRUNCATE TABLE aircraft_modes'; |
@@ -396,6 +425,9 @@ discard block |
||
396 | 425 | return ''; |
397 | 426 | } |
398 | 427 | |
428 | + /** |
|
429 | + * @param string $database_file |
|
430 | + */ |
|
399 | 431 | public static function retrieve_owner($database_file,$country = 'F') { |
400 | 432 | global $globalTransaction, $globalMasterSource; |
401 | 433 | //$query = 'TRUNCATE TABLE aircraft_modes'; |
@@ -1276,6 +1308,10 @@ discard block |
||
1276 | 1308 | return ''; |
1277 | 1309 | } |
1278 | 1310 | |
1311 | + /** |
|
1312 | + * @param string $filename |
|
1313 | + * @param string $tletype |
|
1314 | + */ |
|
1279 | 1315 | public static function tle($filename,$tletype) { |
1280 | 1316 | require_once(dirname(__FILE__).'/../require/class.Spotter.php'); |
1281 | 1317 | global $tmp_dir, $globalTransaction; |
@@ -1408,6 +1444,9 @@ discard block |
||
1408 | 1444 | |
1409 | 1445 | } |
1410 | 1446 | */ |
1447 | + /** |
|
1448 | + * @param string $filename |
|
1449 | + */ |
|
1411 | 1450 | public static function waypoints($filename) { |
1412 | 1451 | //require_once(dirname(__FILE__).'/../require/class.Spotter.php'); |
1413 | 1452 | global $tmp_dir, $globalTransaction; |
@@ -1455,6 +1494,9 @@ discard block |
||
1455 | 1494 | return ''; |
1456 | 1495 | } |
1457 | 1496 | |
1497 | + /** |
|
1498 | + * @param string $filename |
|
1499 | + */ |
|
1458 | 1500 | public static function ivao_airlines($filename) { |
1459 | 1501 | //require_once(dirname(__FILE__).'/../require/class.Spotter.php'); |
1460 | 1502 | global $tmp_dir, $globalTransaction; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * Get SQL query part for filter used |
15 | 15 | * @param Array $filter the filter |
16 | - * @return Array the SQL part |
|
16 | + * @return string the SQL part |
|
17 | 17 | */ |
18 | 18 | |
19 | 19 | public function getFilter($filter = array(),$where = false,$and = false) { |
@@ -566,25 +566,6 @@ discard block |
||
566 | 566 | * |
567 | 567 | * @param String $fammarine_id the ID |
568 | 568 | * @param String $ident the marine ident |
569 | - * @param String $departure_airport_icao the departure airport |
|
570 | - * @param String $arrival_airport_icao the arrival airport |
|
571 | - * @param String $latitude latitude of flight |
|
572 | - * @param String $longitude latitude of flight |
|
573 | - * @param String $waypoints waypoints of flight |
|
574 | - * @param String $heading heading of flight |
|
575 | - * @param String $groundspeed speed of flight |
|
576 | - * @param String $date date of flight |
|
577 | - * @param String $departure_airport_time departure time of flight |
|
578 | - * @param String $arrival_airport_time arrival time of flight |
|
579 | - * @param String $squawk squawk code of flight |
|
580 | - * @param String $route_stop route stop of flight |
|
581 | - * @param String $highlight highlight or not |
|
582 | - * @param String $ModeS ModesS code of flight |
|
583 | - * @param String $registration registration code of flight |
|
584 | - * @param String $pilot_id pilot id of flight (for virtual airlines) |
|
585 | - * @param String $pilot_name pilot name of flight (for virtual airlines) |
|
586 | - * @param String $verticalrate vertival rate of flight |
|
587 | - * @return String success or false |
|
588 | 569 | */ |
589 | 570 | public function addMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $mmsi = '',$type = '',$typeid = '',$imo = '',$callsign = '',$arrival_code = '',$arrival_date = '',$status = '',$statusid = '',$format_source = '', $source_name = '') |
590 | 571 | { |
@@ -1467,7 +1448,7 @@ discard block |
||
1467 | 1448 | /** |
1468 | 1449 | * Parses the direction degrees to working |
1469 | 1450 | * |
1470 | - * @param Float $direction the direction in degrees |
|
1451 | + * @param integer $direction the direction in degrees |
|
1471 | 1452 | * @return Array the direction information |
1472 | 1453 | * |
1473 | 1454 | */ |
@@ -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; |
@@ -794,10 +794,6 @@ discard block |
||
794 | 794 | * |
795 | 795 | * @param String $fammarine_id the ID from flightaware |
796 | 796 | * @param String $ident the flight ident |
797 | - * @param String $aircraft_icao the aircraft type |
|
798 | - * @param String $departure_airport_icao the departure airport |
|
799 | - * @param String $arrival_airport_icao the arrival airport |
|
800 | - * @return String success or false |
|
801 | 797 | * |
802 | 798 | */ |
803 | 799 | public function addLiveMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $putinarchive = false, $mmsi = '',$type = '',$typeid = '',$imo = '', $callsign = '',$arrival_code = '',$arrival_date = '',$status = '',$statusid = '',$noarchive = false,$format_source = '', $source_name = '', $over_country = '') |