示例#1
0
function updateHotelsStep_4()
{
    $hotel = new Hotels();
    $hotel->setValues($_REQUEST);
    //INFO: Log
    //$temp_hotel1 = new Hotels();
    //$temp_hotel2 = $_REQUEST;
    //$temp_hotel1->setHotelId($hotel->hotelId());
    //$temp_hotel1=(array)$temp_hotel1->getHotelFromId();
    //$TransactionLog=new TransactionLog($hotel->hotelId(),Libs::getKey('hotel_sections','Useful Info'),'Update',Sessions::getMemberId(),'hotels',$temp_hotel1[0],$temp_hotel2);
    //$TransactionLog->log();
    //$temp_hotel1=null;
    //$temp_hotel2=null;
    //INFO: Log//
    if ($hotel->updateHotelsStep_4()) {
        $complete = new ProfileCompletion();
        $complete->setHotelStepId($_REQUEST['hotel_step_id']);
        $complete->setHotelStep1(1);
        $complete->updateProfileCompletionStep('5');
        echo $_REQUEST['hotel_step_id'];
        Common::jsonSuccess("");
    } else {
        Common::jsonError("Error");
    }
}
示例#2
0
function updateHotelsStep_4()
{
    $hotel = new Hotels();
    $hotel->setValues($_REQUEST);
    if ($hotel->updateHotelsStep_4()) {
        $complete = new ProfileCompletion();
        $complete->setHotelStepId($_REQUEST['hotel_step_id']);
        $complete->setHotelStep1(1);
        $complete->updateProfileCompletionStep('5');
        echo $_REQUEST['hotel_step_id'];
        Common::jsonSuccess("");
    } else {
        Common::jsonError("Error");
    }
}