function getReservationDetails($data) { $userData = $this->populateReservationDetails($data); //dmp($userData); $reservationData = new stdClass(); $reservationData->userData = $userData; $reservationData->appSettings = JHotelUtil::getInstance()->getApplicationSettings(); $reservationData->hotel = HotelService::getHotel($userData->hotelId); UserDataService::setReservedItems($userData->reservedItems); $reservationService = new ReservationService(); $reservationDetails = $reservationService->generateReservationSummary($reservationData, false); $reservationDetails->reservationData = $reservationData; UserDataService::setReservationDetails($reservationDetails); return $reservationDetails; }