}
        }
        $is_air = $mleg->getTransportation() == 'air_mission';
        if ($is_air) {
            $to_airport = $mleg->getAirportRelatedByToAirportId();
            $from_airport = $mleg->getAirportRelatedByFromAirportId();
        }
        //// FBO information
        if ($mleg->getFboId()) {
            $fromFbo = FboPeer::retrieveByPK($mleg->getFboId());
        }
        if ($mleg->getFboDestId()) {
            $destFbo = FboPeer::retrieveByPK($mleg->getFboDestId());
        }
        //ETD and ETA information
        $afaLeg = AfaLegPeer::retrieveByPK($mleg->getId());
        ?>
<table border="0" cellpadding="2" width="650" cellspacing="0">
<tr>
<td colspan="3" bgcolor="#2000BF"><font color="#FFFFFF"><strong>Leg <?php 
        echo $mleg->getLegNumber();
        ?>
:
    Angel Flight West -- (310) 390-2958</strong></font></td>
</tr>
<tr>
   <td width="215" valign="top" align="left"><small><strong>FROM: </strong><?php 
        if ($is_air) {
            echo $from_airport->getIdent() . ' (' . $from_airport->getCity() . ', ' . $from_airport->getState() . ')';
        }
        ?>
Ejemplo n.º 2
0
 /**
  * Gets a single AfaLeg object, which is related to this object by a one-to-one relationship.
  *
  * @param      PropelPDO $con
  * @return     AfaLeg
  * @throws     PropelException
  */
 public function getAfaLeg(PropelPDO $con = null)
 {
     if ($this->singleAfaLeg === null && !$this->isNew()) {
         $this->singleAfaLeg = AfaLegPeer::retrieveByPK($this->id, $con);
     }
     return $this->singleAfaLeg;
 }