@@ -6,6 +6,9 @@ discard block |
||
| 6 | 6 | public $dbs = array(); |
| 7 | 7 | public $latest_schema = 54; |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param string $dbname |
|
| 11 | + */ |
|
| 9 | 12 | public function __construct($dbc = null,$dbname = null,$user = null,$pass = null) { |
| 10 | 13 | global $globalNoDB; |
| 11 | 14 | if (isset($globalNoDB) && $globalNoDB === TRUE) { |
@@ -142,6 +145,9 @@ discard block |
||
| 142 | 145 | return true; |
| 143 | 146 | } |
| 144 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $table |
|
| 150 | + */ |
|
| 145 | 151 | public function tableExists($table) |
| 146 | 152 | { |
| 147 | 153 | global $globalDBdriver, $globalDBname; |
@@ -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 | |
| 20 | 20 | public function getFilter($filter = array(),$where = false,$and = false) { |
@@ -1003,25 +1003,6 @@ discard block |
||
| 1003 | 1003 | * |
| 1004 | 1004 | * @param String $fammarine_id the ID |
| 1005 | 1005 | * @param String $ident the marine ident |
| 1006 | - * @param String $departure_airport_icao the departure airport |
|
| 1007 | - * @param String $arrival_airport_icao the arrival airport |
|
| 1008 | - * @param String $latitude latitude of flight |
|
| 1009 | - * @param String $longitude latitude of flight |
|
| 1010 | - * @param String $waypoints waypoints of flight |
|
| 1011 | - * @param String $heading heading of flight |
|
| 1012 | - * @param String $groundspeed speed of flight |
|
| 1013 | - * @param String $date date of flight |
|
| 1014 | - * @param String $departure_airport_time departure time of flight |
|
| 1015 | - * @param String $arrival_airport_time arrival time of flight |
|
| 1016 | - * @param String $squawk squawk code of flight |
|
| 1017 | - * @param String $route_stop route stop of flight |
|
| 1018 | - * @param String $highlight highlight or not |
|
| 1019 | - * @param String $ModeS ModesS code of flight |
|
| 1020 | - * @param String $registration registration code of flight |
|
| 1021 | - * @param String $pilot_id pilot id of flight (for virtual airlines) |
|
| 1022 | - * @param String $pilot_name pilot name of flight (for virtual airlines) |
|
| 1023 | - * @param String $verticalrate vertival rate of flight |
|
| 1024 | - * @return String success or false |
|
| 1025 | 1006 | */ |
| 1026 | 1007 | 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 = '', $captain_id = '',$captain_name = '',$race_id = '', $race_name = '', $distance = '',$race_rank = '', $race_time = '') |
| 1027 | 1008 | { |
@@ -1624,6 +1605,7 @@ discard block |
||
| 1624 | 1605 | /** |
| 1625 | 1606 | * Counts all hours |
| 1626 | 1607 | * |
| 1608 | + * @param string $orderby |
|
| 1627 | 1609 | * @return Array the hour list |
| 1628 | 1610 | * |
| 1629 | 1611 | */ |
@@ -1975,7 +1957,7 @@ discard block |
||
| 1975 | 1957 | /** |
| 1976 | 1958 | * Parses the direction degrees to working |
| 1977 | 1959 | * |
| 1978 | - * @param Float $direction the direction in degrees |
|
| 1960 | + * @param integer $direction the direction in degrees |
|
| 1979 | 1961 | * @return Array the direction information |
| 1980 | 1962 | * |
| 1981 | 1963 | */ |
@@ -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 | public function getFilter($filter = array(),$where = false,$and = false) { |
| 21 | 21 | global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver; |
@@ -923,10 +923,6 @@ discard block |
||
| 923 | 923 | * |
| 924 | 924 | * @param String $fammarine_id the ID from flightaware |
| 925 | 925 | * @param String $ident the flight ident |
| 926 | - * @param String $aircraft_icao the aircraft type |
|
| 927 | - * @param String $departure_airport_icao the departure airport |
|
| 928 | - * @param String $arrival_airport_icao the arrival airport |
|
| 929 | - * @return String success or false |
|
| 930 | 926 | * |
| 931 | 927 | */ |
| 932 | 928 | 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 = '',$captain_id = '',$captain_name = '',$race_id = '', $race_name = '', $distance = '', $race_rank = '', $race_time = '') |