@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * Change IATA to ICAO value for ident |
|
| 36 | - * |
|
| 37 | - * @param String $ident ident |
|
| 38 | - * @return String the icao |
|
| 39 | - */ |
|
| 35 | + * Change IATA to ICAO value for ident |
|
| 36 | + * |
|
| 37 | + * @param String $ident ident |
|
| 38 | + * @return String the icao |
|
| 39 | + */ |
|
| 40 | 40 | public function ident2icao($ident) { |
| 41 | 41 | if (substr($ident,0,2) == 'AF') { |
| 42 | 42 | if (filter_var(substr($ident,2),FILTER_VALIDATE_INT,array("flags"=>FILTER_FLAG_ALLOW_OCTAL))) $icao = $ident; |
@@ -52,11 +52,11 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * Deletes all info in the live table |
|
| 56 | - * |
|
| 57 | - * @return String success or false |
|
| 58 | - * |
|
| 59 | - */ |
|
| 55 | + * Deletes all info in the live table |
|
| 56 | + * |
|
| 57 | + * @return String success or false |
|
| 58 | + * |
|
| 59 | + */ |
|
| 60 | 60 | public function deleteLiveAcarsData() |
| 61 | 61 | { |
| 62 | 62 | global $globalDBdriver; |
@@ -76,11 +76,11 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * Deletes all info in the archive table |
|
| 80 | - * |
|
| 81 | - * @return String success or false |
|
| 82 | - * |
|
| 83 | - */ |
|
| 79 | + * Deletes all info in the archive table |
|
| 80 | + * |
|
| 81 | + * @return String success or false |
|
| 82 | + * |
|
| 83 | + */ |
|
| 84 | 84 | public function deleteArchiveAcarsData() |
| 85 | 85 | { |
| 86 | 86 | global $globalACARSArchiveKeepMonths, $globalDBdriver; |
@@ -101,11 +101,11 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * Parse ACARS data |
|
| 105 | - * |
|
| 106 | - * @param String ACARS data in acarsdec data |
|
| 107 | - * |
|
| 108 | - */ |
|
| 104 | + * Parse ACARS data |
|
| 105 | + * |
|
| 106 | + * @param String ACARS data in acarsdec data |
|
| 107 | + * |
|
| 108 | + */ |
|
| 109 | 109 | public function parse($data) { |
| 110 | 110 | global $globalDebug, $globalACARSArchive; |
| 111 | 111 | //$Image = new Image($this->db); |
@@ -735,11 +735,11 @@ discard block |
||
| 735 | 735 | } |
| 736 | 736 | |
| 737 | 737 | /** |
| 738 | - * Add ACARS data |
|
| 739 | - * |
|
| 740 | - * @param String ACARS data in acarsdec data |
|
| 741 | - * |
|
| 742 | - */ |
|
| 738 | + * Add ACARS data |
|
| 739 | + * |
|
| 740 | + * @param String ACARS data in acarsdec data |
|
| 741 | + * |
|
| 742 | + */ |
|
| 743 | 743 | public function add($data) { |
| 744 | 744 | global $globalDebug, $globalACARSArchive; |
| 745 | 745 | $Image = new Image($this->db); |
@@ -786,15 +786,15 @@ discard block |
||
| 786 | 786 | } |
| 787 | 787 | |
| 788 | 788 | /** |
| 789 | - * Add Live ACARS data in DB |
|
| 790 | - * |
|
| 791 | - * @param String $ident ident |
|
| 792 | - * @param String $registration Registration of the aircraft |
|
| 793 | - * @param String $label Label of the ACARS message |
|
| 794 | - * @param String $block_id Block id of the ACARS message |
|
| 795 | - * @param String $msg_no Number of the ACARS message |
|
| 796 | - * @param String $message ACARS message |
|
| 797 | - */ |
|
| 789 | + * Add Live ACARS data in DB |
|
| 790 | + * |
|
| 791 | + * @param String $ident ident |
|
| 792 | + * @param String $registration Registration of the aircraft |
|
| 793 | + * @param String $label Label of the ACARS message |
|
| 794 | + * @param String $block_id Block id of the ACARS message |
|
| 795 | + * @param String $msg_no Number of the ACARS message |
|
| 796 | + * @param String $message ACARS message |
|
| 797 | + */ |
|
| 798 | 798 | public function addLiveAcarsData($ident,$registration,$label,$block_id,$msg_no,$message,$decode = '') { |
| 799 | 799 | global $globalDebug; |
| 800 | 800 | date_default_timezone_set('UTC'); |
@@ -830,15 +830,15 @@ discard block |
||
| 830 | 830 | } |
| 831 | 831 | |
| 832 | 832 | /** |
| 833 | - * Add Archive ACARS data in DB |
|
| 834 | - * |
|
| 835 | - * @param String $ident ident |
|
| 836 | - * @param String $registration Registration of the aircraft |
|
| 837 | - * @param String $label Label of the ACARS message |
|
| 838 | - * @param String $block_id Block id of the ACARS message |
|
| 839 | - * @param String $msg_no Number of the ACARS message |
|
| 840 | - * @param String $message ACARS message |
|
| 841 | - */ |
|
| 833 | + * Add Archive ACARS data in DB |
|
| 834 | + * |
|
| 835 | + * @param String $ident ident |
|
| 836 | + * @param String $registration Registration of the aircraft |
|
| 837 | + * @param String $label Label of the ACARS message |
|
| 838 | + * @param String $block_id Block id of the ACARS message |
|
| 839 | + * @param String $msg_no Number of the ACARS message |
|
| 840 | + * @param String $message ACARS message |
|
| 841 | + */ |
|
| 842 | 842 | public function addArchiveAcarsData($ident,$registration,$label,$block_id,$msg_no,$message,$decode = '') { |
| 843 | 843 | global $globalDebug; |
| 844 | 844 | date_default_timezone_set('UTC'); |
@@ -869,11 +869,11 @@ discard block |
||
| 869 | 869 | } |
| 870 | 870 | |
| 871 | 871 | /** |
| 872 | - * Get Message title from label from DB |
|
| 873 | - * |
|
| 874 | - * @param String $label |
|
| 875 | - * @return String Return ACARS title |
|
| 876 | - */ |
|
| 872 | + * Get Message title from label from DB |
|
| 873 | + * |
|
| 874 | + * @param String $label |
|
| 875 | + * @return String Return ACARS title |
|
| 876 | + */ |
|
| 877 | 877 | public function getTitlefromLabel($label) { |
| 878 | 878 | $Connection = new Connection($this->db); |
| 879 | 879 | $this->db = $Connection->db; |
@@ -892,10 +892,10 @@ discard block |
||
| 892 | 892 | } |
| 893 | 893 | |
| 894 | 894 | /** |
| 895 | - * List all Message title & label from DB |
|
| 896 | - * |
|
| 897 | - * @return Array Return ACARS data in array |
|
| 898 | - */ |
|
| 895 | + * List all Message title & label from DB |
|
| 896 | + * |
|
| 897 | + * @return Array Return ACARS data in array |
|
| 898 | + */ |
|
| 899 | 899 | public function getAllTitleLabel() { |
| 900 | 900 | $query = "SELECT * FROM acars_label ORDER BY title"; |
| 901 | 901 | $query_values = array(); |
@@ -912,11 +912,11 @@ discard block |
||
| 912 | 912 | } |
| 913 | 913 | |
| 914 | 914 | /** |
| 915 | - * Get Live ACARS data from DB |
|
| 916 | - * |
|
| 917 | - * @param String $ident |
|
| 918 | - * @return Array Return ACARS data in array |
|
| 919 | - */ |
|
| 915 | + * Get Live ACARS data from DB |
|
| 916 | + * |
|
| 917 | + * @param String $ident |
|
| 918 | + * @return Array Return ACARS data in array |
|
| 919 | + */ |
|
| 920 | 920 | public function getLiveAcarsData($ident) { |
| 921 | 921 | $query = "SELECT * FROM acars_live WHERE ident = :ident ORDER BY acars_live_id DESC"; |
| 922 | 922 | $query_values = array(':ident' => $ident); |
@@ -933,10 +933,10 @@ discard block |
||
| 933 | 933 | } |
| 934 | 934 | |
| 935 | 935 | /** |
| 936 | - * Get Latest ACARS data from DB |
|
| 937 | - * |
|
| 938 | - * @return Array Return ACARS data in array |
|
| 939 | - */ |
|
| 936 | + * Get Latest ACARS data from DB |
|
| 937 | + * |
|
| 938 | + * @return Array Return ACARS data in array |
|
| 939 | + */ |
|
| 940 | 940 | public function getLatestAcarsData($limit = '',$label = '') { |
| 941 | 941 | global $globalURL, $globalDBdriver; |
| 942 | 942 | $Image = new Image($this->db); |
@@ -1024,10 +1024,10 @@ discard block |
||
| 1024 | 1024 | } |
| 1025 | 1025 | |
| 1026 | 1026 | /** |
| 1027 | - * Get Archive ACARS data from DB |
|
| 1028 | - * |
|
| 1029 | - * @return Array Return ACARS data in array |
|
| 1030 | - */ |
|
| 1027 | + * Get Archive ACARS data from DB |
|
| 1028 | + * |
|
| 1029 | + * @return Array Return ACARS data in array |
|
| 1030 | + */ |
|
| 1031 | 1031 | public function getArchiveAcarsData($limit = '',$label = '') { |
| 1032 | 1032 | global $globalURL, $globalDBdriver; |
| 1033 | 1033 | $Image = new Image($this->db); |
@@ -1116,13 +1116,13 @@ discard block |
||
| 1116 | 1116 | } |
| 1117 | 1117 | |
| 1118 | 1118 | /** |
| 1119 | - * Add ModeS data to DB |
|
| 1120 | - * |
|
| 1121 | - * @param String $ident ident |
|
| 1122 | - * @param String $registration Registration of the aircraft |
|
| 1123 | - * @param String $icao |
|
| 1124 | - * @param String $ICAOTypeCode |
|
| 1125 | - */ |
|
| 1119 | + * Add ModeS data to DB |
|
| 1120 | + * |
|
| 1121 | + * @param String $ident ident |
|
| 1122 | + * @param String $registration Registration of the aircraft |
|
| 1123 | + * @param String $icao |
|
| 1124 | + * @param String $ICAOTypeCode |
|
| 1125 | + */ |
|
| 1126 | 1126 | public function addModeSData($ident,$registration,$icao = '',$ICAOTypeCode = '',$latitude = '', $longitude = '') { |
| 1127 | 1127 | global $globalDebug, $globalDBdriver; |
| 1128 | 1128 | $ident = trim($ident); |