Пример #1
0
 include __DIR__ . '/LMwebSoapClient/Template.php';
 $wsdl = "http://web3dev.travel-it.com/TravelItMixer/SoapMixer?wsdl";
 $sc = new LMwebSoapClient(LMwebSoapClient::$wsdl);
 $mro = new MixerRequestObject('235', 'HR74A69Q', '');
 $mro->setJourneyType($journeytype);
 $mro->setDestination($nach);
 if (isset($journeytype) && $journeytype == "JOURNEY") {
     $mro->setDepartureAirport($von);
 }
 $mro->setPerson('2');
 $mro->setDepartureDate($abreiseDate->format('Y-m-d'));
 $mro->setReturnDate($ruckreiseDate->format('Y-m-d'));
 try {
     if ($mro->getJourneyType() == 'FLIGHT') {
         echo 'index controller search flights';
         $result = $sc->searchFlights($mro);
         if ($result != null) {
             //	Template::searchFlightsTemplate($result, $mro);
         }
     } else {
         $dst = $mro->getDestination();
         if (!($dst[0] == null)) {
             //  echo 'index controller search offers';
             $offers = $sc->searchOffers($mro);
             //var_dump($offers);
             if ($offers != null) {
                 $temp = 1;
                 $m = 0;
                 $c = 0;
                 for ($i = 0; $i < count($offers); $i++) {
                     $m = $temp;