Option for SB only on bids; add the new file type #642 (#643)

Option for SB only on bids; add the new file type #642
This commit is contained in:
Nabeel S
2020-03-27 11:49:19 -04:00
committed by GitHub
parent f3fe3a56ba
commit 4a3ec38919
15 changed files with 746 additions and 56 deletions

View File

@@ -26,6 +26,21 @@ class SimBriefXML extends SimpleXMLElement
return str_pad($fl, 3, '0', STR_PAD_LEFT);
}
/**
* Return the URL to the vmsACARS flight plan file
*
* @return string|null
*/
public function getAcarsXmlUrl()
{
if (!empty($this->fms_downloads->vms)) {
$base_url = $this->fms_downloads->directory;
return $base_url.$this->fms_downloads->vms->link;
}
return null;
}
/**
* Retrieve all of the flightplans
*