Esempio n. 1
0
 //}
 //$mro->setParamsByArray($_GET);
 $mro->setJourneyType($jType);
 //	$mro->setDestination('Asien');
 //	$mro->setRegionGIATAidDestination('Asien');
 //$mro->setDepartureAirport('Munich');
 $mro->setDestination($destination);
 if (isset($jType) && $jType == "JOURNEY") {
     $mro->setDepartureAirport('MUC');
     echo $jType;
 }
 $mro->setPerson($persons);
 $mro->setDepartureDate('2015-10-15');
 $mro->setReturnDate('2015-10-28');
 try {
     $result = $this->sc->searchDestinations(array('mro' => $mro->getParamsAsArray()))->return;
     var_dump($result);
     /* if ($mro->getJourneyType() == 'FLIGHT') {
     //        echo 'searchFlights<br>';
                 echo 'index controller search flights';
     
                 $result = $sc->searchFlights($mro);
                 //var_dump($result);
                 if ($result != null) {
                     //	Template::searchFlightsTemplate($result, $mro);
                 }
             } else {
                 $dst = $mro->getDestination();
                 if (!($dst[0] == null)) {
     //                echo 'searchOffers<br>';
                     echo 'index controller search offers';