Completed
Push — master ( 14281c...6f3189 )
by Yannick
30:26
created
require/class.NOTAM.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -1126,6 +1126,10 @@  discard block
 block discarded – undo
1126 1126
 		else return array();
1127 1127
 	}
1128 1128
 
1129
+	/**
1130
+	 * @param string $type
1131
+	 * @param string $rules
1132
+	 */
1129 1133
 	public function addNOTAM($ref,$title,$type,$fir,$code,$rules,$scope,$lower_limit,$upper_limit,$center_latitude,$center_longitude,$radius,$date_begin,$date_end,$permanent,$text,$full_notam) {
1130 1134
 		$query = "INSERT INTO notam (ref,title,notam_type,fir,code,rules,scope,lower_limit,upper_limit,center_latitude,center_longitude,radius,date_begin,date_end,permanent,notam_text,full_notam) VALUES (:ref,:title,:type,:fir,:code,:rules,:scope,:lower_limit,:upper_limit,:center_latitude,:center_longitude,:radius,:date_begin,:date_end,:permanent,:text,:full_notam)";
1131 1135
 		$query_values = array(':ref' => $ref,':title' => $title,':type' => $type,':fir' => $fir,':code' => $code,':rules' => $rules,':scope' => $scope,':lower_limit' => $lower_limit,':upper_limit' => $upper_limit,':center_latitude' => $center_latitude,':center_longitude' => $center_longitude,':radius' => $radius,':date_begin' => $date_begin,':date_end' => $date_end,':permanent' => $permanent,':text' => $text,':full_notam' => $full_notam);
@@ -1207,6 +1211,10 @@  discard block
 block discarded – undo
1207 1211
 			}
1208 1212
 		}
1209 1213
 	}
1214
+
1215
+	/**
1216
+	 * @param string $filename
1217
+	 */
1210 1218
 	public function updateNOTAMfromTextFile($filename) {
1211 1219
 		global $globalTransaction, $globalDebug;
1212 1220
 		$alldata = $this->parseNOTAMtextFile($filename);
@@ -1261,6 +1269,9 @@  discard block
 block discarded – undo
1261 1269
 		}
1262 1270
 	}
1263 1271
 
1272
+	/**
1273
+	 * @param string $icao
1274
+	 */
1264 1275
 	public function downloadNOTAM($icao) {
1265 1276
 		date_default_timezone_set("UTC");
1266 1277
 		$Common = new Common();
@@ -1416,6 +1427,9 @@  discard block
 block discarded – undo
1416 1427
 		return $result;
1417 1428
 	}
1418 1429
 	
1430
+	/**
1431
+	 * @param string $code
1432
+	 */
1419 1433
 	public function parse_code($code) {
1420 1434
 		$code = str_split($code);
1421 1435
 		$code_fp = $code[1].$code[2];
Please login to merge, or discard this patch.