예제 #1
0
 function addGuestDetails()
 {
     $data = JRequest::get("post");
     UserDataService::addGuestDetails($data);
     $appSettings = JHotelUtil::getInstance()->getApplicationSettings();
     if ($appSettings->save_all_guests_data) {
         UserDataService::storeGuestDetails($data);
     }
     $reservedItems = JRequest::getVar("reservedItems");
     $hotelId = JRequest::getVar("hotel_id");
     if (!empty($reservedItems)) {
         UserDataService::updateRooms($hotelId, $reservedItems);
         /*echo "<pre>";
         		var_dump(UserDataService::updateRooms($hotelId, $reservedItems));
         		echo "</pre>";
         		die;*/
     }
     $this->setRedirect(JRoute::_('index.php?option=com_jhotelreservation&task=paymentoptions.showPaymentOptions', false));
 }