Completed
Push — master ( ebf06d...0cac3f )
by Yannick
07:48
created
install/class.update_db.php 1 patch
Doc Comments   +42 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.