Jump to content

Rev - Merge pull request #68 from Vansers/master


Nabeel

Recommended Posts

  • Moderators

Just a note for everyone who is using the PIREP list, such as recent flights.

To get the pilot code, it would be like this -

$pirep->pcode.''.$pirep->pilotid

Or it doesn't matter really on what you prefer.

$pilotinfo = PilotData::getPilotData($pirep->pilotid);
$pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
$pilotid.' '.$pilotinfo->firstname.' '.$pilotinfo->lastname

$pcode = pilot code

$code = pirep code

Link to comment
Share on other sites

×
×
  • Create New...