@@ -10,10 +10,10 @@ discard block |
||
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * Get SQL query part for filter used |
|
| 14 | - * @param Array $filter the filter |
|
| 15 | - * @return Array the SQL part |
|
| 16 | - */ |
|
| 13 | + * Get SQL query part for filter used |
|
| 14 | + * @param Array $filter the filter |
|
| 15 | + * @return Array the SQL part |
|
| 16 | + */ |
|
| 17 | 17 | public function getFilter($filter = array(),$where = false,$and = false) { |
| 18 | 18 | global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver; |
| 19 | 19 | $filters = array(); |
@@ -159,11 +159,11 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * Gets all the spotter information based on a particular callsign |
|
| 163 | - * |
|
| 164 | - * @return Array the spotter information |
|
| 165 | - * |
|
| 166 | - */ |
|
| 162 | + * Gets all the spotter information based on a particular callsign |
|
| 163 | + * |
|
| 164 | + * @return Array the spotter information |
|
| 165 | + * |
|
| 166 | + */ |
|
| 167 | 167 | public function getLastArchiveSpotterDataByIdent($ident) { |
| 168 | 168 | $Spotter = new Spotter($this->db); |
| 169 | 169 | date_default_timezone_set('UTC'); |
@@ -179,11 +179,11 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | - * Gets last the spotter information based on a particular id |
|
| 183 | - * |
|
| 184 | - * @return Array the spotter information |
|
| 185 | - * |
|
| 186 | - */ |
|
| 182 | + * Gets last the spotter information based on a particular id |
|
| 183 | + * |
|
| 184 | + * @return Array the spotter information |
|
| 185 | + * |
|
| 186 | + */ |
|
| 187 | 187 | public function getLastArchiveSpotterDataById($id) { |
| 188 | 188 | $Spotter = new Spotter($this->db); |
| 189 | 189 | date_default_timezone_set('UTC'); |
@@ -209,11 +209,11 @@ discard block |
||
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
| 212 | - * Gets all the spotter information based on a particular id |
|
| 213 | - * |
|
| 214 | - * @return Array the spotter information |
|
| 215 | - * |
|
| 216 | - */ |
|
| 212 | + * Gets all the spotter information based on a particular id |
|
| 213 | + * |
|
| 214 | + * @return Array the spotter information |
|
| 215 | + * |
|
| 216 | + */ |
|
| 217 | 217 | public function getAllArchiveSpotterDataById($id) { |
| 218 | 218 | date_default_timezone_set('UTC'); |
| 219 | 219 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -234,11 +234,11 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | - * Gets coordinate & time spotter information based on a particular id |
|
| 238 | - * |
|
| 239 | - * @return Array the spotter information |
|
| 240 | - * |
|
| 241 | - */ |
|
| 237 | + * Gets coordinate & time spotter information based on a particular id |
|
| 238 | + * |
|
| 239 | + * @return Array the spotter information |
|
| 240 | + * |
|
| 241 | + */ |
|
| 242 | 242 | public function getCoordArchiveSpotterDataById($id) { |
| 243 | 243 | date_default_timezone_set('UTC'); |
| 244 | 244 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -256,11 +256,11 @@ discard block |
||
| 256 | 256 | |
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | - * Gets altitude information based on a particular callsign |
|
| 260 | - * |
|
| 261 | - * @return Array the spotter information |
|
| 262 | - * |
|
| 263 | - */ |
|
| 259 | + * Gets altitude information based on a particular callsign |
|
| 260 | + * |
|
| 261 | + * @return Array the spotter information |
|
| 262 | + * |
|
| 263 | + */ |
|
| 264 | 264 | public function getAltitudeArchiveSpotterDataByIdent($ident) { |
| 265 | 265 | |
| 266 | 266 | date_default_timezone_set('UTC'); |
@@ -281,11 +281,11 @@ discard block |
||
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | /** |
| 284 | - * Gets altitude information based on a particular id |
|
| 285 | - * |
|
| 286 | - * @return Array the spotter information |
|
| 287 | - * |
|
| 288 | - */ |
|
| 284 | + * Gets altitude information based on a particular id |
|
| 285 | + * |
|
| 286 | + * @return Array the spotter information |
|
| 287 | + * |
|
| 288 | + */ |
|
| 289 | 289 | public function getAltitudeArchiveSpotterDataById($id) { |
| 290 | 290 | |
| 291 | 291 | date_default_timezone_set('UTC'); |
@@ -306,11 +306,11 @@ discard block |
||
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | /** |
| 309 | - * Gets altitude & speed information based on a particular id |
|
| 310 | - * |
|
| 311 | - * @return Array the spotter information |
|
| 312 | - * |
|
| 313 | - */ |
|
| 309 | + * Gets altitude & speed information based on a particular id |
|
| 310 | + * |
|
| 311 | + * @return Array the spotter information |
|
| 312 | + * |
|
| 313 | + */ |
|
| 314 | 314 | public function getAltitudeSpeedArchiveSpotterDataById($id) { |
| 315 | 315 | date_default_timezone_set('UTC'); |
| 316 | 316 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -327,11 +327,11 @@ discard block |
||
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | /** |
| 330 | - * Gets altitude information based on a particular callsign |
|
| 331 | - * |
|
| 332 | - * @return Array the spotter information |
|
| 333 | - * |
|
| 334 | - */ |
|
| 330 | + * Gets altitude information based on a particular callsign |
|
| 331 | + * |
|
| 332 | + * @return Array the spotter information |
|
| 333 | + * |
|
| 334 | + */ |
|
| 335 | 335 | public function getLastAltitudeArchiveSpotterDataByIdent($ident) { |
| 336 | 336 | date_default_timezone_set('UTC'); |
| 337 | 337 | $ident = filter_var($ident, FILTER_SANITIZE_STRING); |
@@ -381,11 +381,11 @@ discard block |
||
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | /** |
| 384 | - * Gets Minimal Live Spotter data |
|
| 385 | - * |
|
| 386 | - * @return Array the spotter information |
|
| 387 | - * |
|
| 388 | - */ |
|
| 384 | + * Gets Minimal Live Spotter data |
|
| 385 | + * |
|
| 386 | + * @return Array the spotter information |
|
| 387 | + * |
|
| 388 | + */ |
|
| 389 | 389 | public function getMinLiveSpotterData($begindate,$enddate,$filter = array()) { |
| 390 | 390 | global $globalDBdriver, $globalLiveInterval; |
| 391 | 391 | date_default_timezone_set('UTC'); |
@@ -433,11 +433,11 @@ discard block |
||
| 433 | 433 | } |
| 434 | 434 | |
| 435 | 435 | /** |
| 436 | - * Gets Minimal Live Spotter data |
|
| 437 | - * |
|
| 438 | - * @return Array the spotter information |
|
| 439 | - * |
|
| 440 | - */ |
|
| 436 | + * Gets Minimal Live Spotter data |
|
| 437 | + * |
|
| 438 | + * @return Array the spotter information |
|
| 439 | + * |
|
| 440 | + */ |
|
| 441 | 441 | public function getMinLiveSpotterDataPlayback($begindate,$enddate,$filter = array()) { |
| 442 | 442 | global $globalDBdriver, $globalLiveInterval; |
| 443 | 443 | date_default_timezone_set('UTC'); |
@@ -501,11 +501,11 @@ discard block |
||
| 501 | 501 | } |
| 502 | 502 | |
| 503 | 503 | /** |
| 504 | - * Gets count Live Spotter data |
|
| 505 | - * |
|
| 506 | - * @return Array the spotter information |
|
| 507 | - * |
|
| 508 | - */ |
|
| 504 | + * Gets count Live Spotter data |
|
| 505 | + * |
|
| 506 | + * @return Array the spotter information |
|
| 507 | + * |
|
| 508 | + */ |
|
| 509 | 509 | public function getLiveSpotterCount($begindate,$enddate,$filter = array()) { |
| 510 | 510 | global $globalDBdriver, $globalLiveInterval; |
| 511 | 511 | date_default_timezone_set('UTC'); |
@@ -551,11 +551,11 @@ discard block |
||
| 551 | 551 | // Spotter_Archive_output |
| 552 | 552 | |
| 553 | 553 | /** |
| 554 | - * Gets all the spotter information |
|
| 555 | - * |
|
| 556 | - * @return Array the spotter information |
|
| 557 | - * |
|
| 558 | - */ |
|
| 554 | + * Gets all the spotter information |
|
| 555 | + * |
|
| 556 | + * @return Array the spotter information |
|
| 557 | + * |
|
| 558 | + */ |
|
| 559 | 559 | public function searchSpotterData($q = '', $registration = '', $aircraft_icao = '', $aircraft_manufacturer = '', $highlights = '', $airline_icao = '', $airline_country = '', $airline_type = '', $airport = '', $airport_country = '', $callsign = '', $departure_airport_route = '', $arrival_airport_route = '', $owner = '',$pilot_id = '',$pilot_name = '',$altitude = '', $date_posted = '', $limit = '', $sort = '', $includegeodata = '',$origLat = '',$origLon = '',$dist = '', $filters=array()) { |
| 560 | 560 | global $globalTimezone, $globalDBdriver; |
| 561 | 561 | require_once(dirname(__FILE__).'/class.Translation.php'); |
@@ -847,11 +847,11 @@ discard block |
||
| 847 | 847 | } |
| 848 | 848 | |
| 849 | 849 | /** |
| 850 | - * Gets all the spotter information based on the callsign |
|
| 851 | - * |
|
| 852 | - * @return Array the spotter information |
|
| 853 | - * |
|
| 854 | - */ |
|
| 850 | + * Gets all the spotter information based on the callsign |
|
| 851 | + * |
|
| 852 | + * @return Array the spotter information |
|
| 853 | + * |
|
| 854 | + */ |
|
| 855 | 855 | public function getSpotterDataByIdent($ident = '', $limit = '', $sort = '') { |
| 856 | 856 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
| 857 | 857 | |
@@ -899,11 +899,11 @@ discard block |
||
| 899 | 899 | |
| 900 | 900 | |
| 901 | 901 | /** |
| 902 | - * Gets all the spotter information based on the owner |
|
| 903 | - * |
|
| 904 | - * @return Array the spotter information |
|
| 905 | - * |
|
| 906 | - */ |
|
| 902 | + * Gets all the spotter information based on the owner |
|
| 903 | + * |
|
| 904 | + * @return Array the spotter information |
|
| 905 | + * |
|
| 906 | + */ |
|
| 907 | 907 | public function getSpotterDataByOwner($owner = '', $limit = '', $sort = '', $filter = array()) { |
| 908 | 908 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
| 909 | 909 | |
@@ -951,11 +951,11 @@ discard block |
||
| 951 | 951 | } |
| 952 | 952 | |
| 953 | 953 | /** |
| 954 | - * Gets all the spotter information based on the pilot |
|
| 955 | - * |
|
| 956 | - * @return Array the spotter information |
|
| 957 | - * |
|
| 958 | - */ |
|
| 954 | + * Gets all the spotter information based on the pilot |
|
| 955 | + * |
|
| 956 | + * @return Array the spotter information |
|
| 957 | + * |
|
| 958 | + */ |
|
| 959 | 959 | public function getSpotterDataByPilot($pilot = '', $limit = '', $sort = '', $filter = array()) { |
| 960 | 960 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
| 961 | 961 | |
@@ -999,11 +999,11 @@ discard block |
||
| 999 | 999 | } |
| 1000 | 1000 | |
| 1001 | 1001 | /** |
| 1002 | - * Gets all number of flight over countries |
|
| 1003 | - * |
|
| 1004 | - * @return Array the airline country list |
|
| 1005 | - * |
|
| 1006 | - */ |
|
| 1002 | + * Gets all number of flight over countries |
|
| 1003 | + * |
|
| 1004 | + * @return Array the airline country list |
|
| 1005 | + * |
|
| 1006 | + */ |
|
| 1007 | 1007 | public function countAllFlightOverCountries($limit = true,$olderthanmonths = 0,$sincedate = '') { |
| 1008 | 1008 | global $globalDBdriver; |
| 1009 | 1009 | /* |
@@ -1043,11 +1043,11 @@ discard block |
||
| 1043 | 1043 | } |
| 1044 | 1044 | |
| 1045 | 1045 | /** |
| 1046 | - * Gets all number of flight over countries |
|
| 1047 | - * |
|
| 1048 | - * @return Array the airline country list |
|
| 1049 | - * |
|
| 1050 | - */ |
|
| 1046 | + * Gets all number of flight over countries |
|
| 1047 | + * |
|
| 1048 | + * @return Array the airline country list |
|
| 1049 | + * |
|
| 1050 | + */ |
|
| 1051 | 1051 | public function countAllFlightOverCountriesByAirlines($limit = true,$olderthanmonths = 0,$sincedate = '') { |
| 1052 | 1052 | global $globalDBdriver; |
| 1053 | 1053 | /* |
@@ -1088,11 +1088,11 @@ discard block |
||
| 1088 | 1088 | } |
| 1089 | 1089 | |
| 1090 | 1090 | /** |
| 1091 | - * Gets last spotter information based on a particular callsign |
|
| 1092 | - * |
|
| 1093 | - * @return Array the spotter information |
|
| 1094 | - * |
|
| 1095 | - */ |
|
| 1091 | + * Gets last spotter information based on a particular callsign |
|
| 1092 | + * |
|
| 1093 | + * @return Array the spotter information |
|
| 1094 | + * |
|
| 1095 | + */ |
|
| 1096 | 1096 | public function getDateArchiveSpotterDataById($id,$date) { |
| 1097 | 1097 | $Spotter = new Spotter($this->db); |
| 1098 | 1098 | date_default_timezone_set('UTC'); |
@@ -1104,11 +1104,11 @@ discard block |
||
| 1104 | 1104 | } |
| 1105 | 1105 | |
| 1106 | 1106 | /** |
| 1107 | - * Gets all the spotter information based on a particular callsign |
|
| 1108 | - * |
|
| 1109 | - * @return Array the spotter information |
|
| 1110 | - * |
|
| 1111 | - */ |
|
| 1107 | + * Gets all the spotter information based on a particular callsign |
|
| 1108 | + * |
|
| 1109 | + * @return Array the spotter information |
|
| 1110 | + * |
|
| 1111 | + */ |
|
| 1112 | 1112 | public function getDateArchiveSpotterDataByIdent($ident,$date) { |
| 1113 | 1113 | $Spotter = new Spotter($this->db); |
| 1114 | 1114 | date_default_timezone_set('UTC'); |
@@ -1120,11 +1120,11 @@ discard block |
||
| 1120 | 1120 | } |
| 1121 | 1121 | |
| 1122 | 1122 | /** |
| 1123 | - * Gets all the spotter information based on the airport |
|
| 1124 | - * |
|
| 1125 | - * @return Array the spotter information |
|
| 1126 | - * |
|
| 1127 | - */ |
|
| 1123 | + * Gets all the spotter information based on the airport |
|
| 1124 | + * |
|
| 1125 | + * @return Array the spotter information |
|
| 1126 | + * |
|
| 1127 | + */ |
|
| 1128 | 1128 | public function getSpotterDataByAirport($airport = '', $limit = '', $sort = '',$filters = array()) { |
| 1129 | 1129 | global $global_query; |
| 1130 | 1130 | $Spotter = new Spotter($this->db); |