<div class="clearfix"></div> <div class="voffset2"></div> <div class="container nospacing content"> '; include __DIR__ . '/LMwebSoapClient/LMwebSoapClient.php'; include __DIR__ . '/LMwebSoapClient/classes/MixerRequestObject.php'; 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);
$mro = new MixerRequestObject('235', 'HR74A69Q', ''); //$mro->setParamsByArray($_GET); //if (isset($_GET['mro'])) { // $mro = unserialize(base64_decode($_GET['mro'])); //} //$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 {