Completed
Push — master ( 5e2e76...e76a64 )
by Yannick
32:07
created
install/class.update_db.php 1 patch
Doc Comments   +48 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@  discard block
 block discarded – undo
20 20
 		return $writable;
21 21
 	}
22 22
 
23
+	/**
24
+	 * @param string $file
25
+	 */
23 26
 	public static function download($url, $file, $referer = '') {
24 27
 		global $globalProxy, $globalForceIPv4;
25 28
 		$fp = fopen($file, 'w');
@@ -44,6 +47,9 @@  discard block
 block discarded – undo
44 47
 		fclose($fp);
45 48
 	}
46 49
 
50
+	/**
51
+	 * @param string $in_file
52
+	 */
47 53
 	public static function gunzip($in_file,$out_file_name = '') {
48 54
 		//echo $in_file.' -> '.$out_file_name."\n";
49 55
 		$buffer_size = 4096; // read 4kb at a time
@@ -65,6 +71,9 @@  discard block
 block discarded – undo
65 71
 		}
66 72
 	}
67 73
 
74
+	/**
75
+	 * @param string $in_file
76
+	 */
68 77
 	public static function unzip($in_file) {
69 78
 		if ($in_file != '' && file_exists($in_file)) {
70 79
 			$path = pathinfo(realpath($in_file), PATHINFO_DIRNAME);
@@ -86,6 +95,9 @@  discard block
 block discarded – undo
86 95
 		}
87 96
 	}
88 97
 	
98
+	/**
99
+	 * @param string $database_file
100
+	 */
89 101
 	public static function retrieve_route_sqlite_to_dest($database_file) {
90 102
 		global $globalDebug, $globalTransaction;
91 103
 		//$query = 'TRUNCATE TABLE routes';
@@ -128,6 +140,10 @@  discard block
 block discarded – undo
128 140
 		}
129 141
                 return '';
130 142
 	}
143
+
144
+	/**
145
+	 * @param string $database_file
146
+	 */
131 147
 	public static function retrieve_route_oneworld($database_file) {
132 148
 		global $globalDebug, $globalTransaction;
133 149
 		//$query = 'TRUNCATE TABLE routes';
@@ -169,6 +185,9 @@  discard block
 block discarded – undo
169 185
                 return '';
170 186
 	}
171 187
 	
188
+	/**
189
+	 * @param string $database_file
190
+	 */
172 191
 	public static function retrieve_route_skyteam($database_file) {
173 192
 		global $globalDebug, $globalTransaction;
174 193
 		//$query = 'TRUNCATE TABLE routes';
@@ -211,6 +230,10 @@  discard block
 block discarded – undo
211 230
 		}
212 231
                 return '';
213 232
 	}
233
+
234
+	/**
235
+	 * @param string $database_file
236
+	 */
214 237
 	public static function retrieve_modes_sqlite_to_dest($database_file) {
215 238
 		global $globalTransaction;
216 239
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -277,6 +300,9 @@  discard block
 block discarded – undo
277 300
 		return '';
278 301
 	}
279 302
 
303
+	/**
304
+	 * @param string $database_file
305
+	 */
280 306
 	public static function retrieve_modes_flarmnet($database_file) {
281 307
 		global $globalTransaction;
282 308
 		$Common = new Common();
@@ -347,6 +373,9 @@  discard block
 block discarded – undo
347 373
 		return '';
348 374
 	}
349 375
 
376
+	/**
377
+	 * @param string $database_file
378
+	 */
350 379
 	public static function retrieve_modes_ogn($database_file) {
351 380
 		global $globalTransaction;
352 381
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -416,6 +445,9 @@  discard block
 block discarded – undo
416 445
 		return '';
417 446
 	}
418 447
 
448
+	/**
449
+	 * @param string $database_file
450
+	 */
419 451
 	public static function retrieve_owner($database_file,$country = 'F') {
420 452
 		global $globalTransaction, $globalMasterSource;
421 453
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -1448,6 +1480,10 @@  discard block
 block discarded – undo
1448 1480
 		return '';
1449 1481
         }
1450 1482
 
1483
+	/**
1484
+	 * @param string $filename
1485
+	 * @param string $tletype
1486
+	 */
1451 1487
 	public static function tle($filename,$tletype) {
1452 1488
 		require_once(dirname(__FILE__).'/../require/class.Spotter.php');
1453 1489
 		global $tmp_dir, $globalTransaction;
@@ -1497,6 +1533,9 @@  discard block
 block discarded – undo
1497 1533
 		return '';
1498 1534
         }
1499 1535
 
1536
+	/**
1537
+	 * @param string $filename
1538
+	 */
1500 1539
 	public static function satellite_ucsdb($filename) {
1501 1540
 		global $tmp_dir, $globalTransaction;
1502 1541
 		
@@ -1545,6 +1584,9 @@  discard block
 block discarded – undo
1545 1584
 		return '';
1546 1585
 	}
1547 1586
 
1587
+	/**
1588
+	 * @param string $filename
1589
+	 */
1548 1590
 	public static function satellite_celestrak($filename) {
1549 1591
 		global $tmp_dir, $globalTransaction, $globalDebug;
1550 1592
 		$satcat_sources = array(
@@ -1871,6 +1913,9 @@  discard block
 block discarded – undo
1871 1913
 
1872 1914
 	}
1873 1915
 */
1916
+	/**
1917
+	 * @param string $filename
1918
+	 */
1874 1919
 	public static function waypoints($filename) {
1875 1920
 		//require_once(dirname(__FILE__).'/../require/class.Spotter.php');
1876 1921
 		global $tmp_dir, $globalTransaction;
@@ -1948,6 +1993,9 @@  discard block
 block discarded – undo
1948 1993
 		}
1949 1994
 	}
1950 1995
 
1996
+	/**
1997
+	 * @param string $filename
1998
+	 */
1951 1999
 	public static function ivao_airlines($filename) {
1952 2000
 		//require_once(dirname(__FILE__).'/../require/class.Spotter.php');
1953 2001
 		global $tmp_dir, $globalTransaction;
Please login to merge, or discard this patch.