本文整理汇总了PHP中Sessions::setRoomImage方法的典型用法代码示例。如果您正苦于以下问题:PHP Sessions::setRoomImage方法的具体用法?PHP Sessions::setRoomImage怎么用?PHP Sessions::setRoomImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sessions
的用法示例。
在下文中一共展示了Sessions::setRoomImage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uploadRoomImageEdit
function uploadRoomImageEdit($path)
{
$pic = $_FILES['pic'];
echo $pic;
$upload_dir = DOC_ROOT . 'uploads/' . $path;
$new_name = "roomista" . time() . "." . get_extension($pic['name']);
Sessions::setRoomImage($new_name);
if (move_uploaded_file($pic['tmp_name'], $upload_dir . $new_name)) {
echo "done";
}
}
示例2: updateHotelsStep_3
function updateHotelsStep_3()
{
$hotelroomtype = new HotelRoomType();
$_REQUEST['room_type_img'] = Sessions::getRoomImage();
$hotelroomtype->setValues($_REQUEST);
//$hotelroomtype->setRoomTypeImg();
if ($hotelroomtype->newHotelRoomType()) {
//INFO: Log
//$temp_room_type = $_REQUEST;
//$TransactionLog=new TransactionLog($temp_room_type['room_type_hotel_id'],Libs::getKey('hotel_sections','Room Types - Add'),'Insert',Sessions::getMemberId(),'hotel_room_types',$temp_room_type,'');
//$TransactionLog->log();
//$temp_room_type=null;
//INFO: Log//
$complete = new ProfileCompletion();
$complete->setHotelStepId($_REQUEST['hotel_step_id']);
$complete->setHotelStep1(1);
$complete->updateProfileCompletionStep('4');
echo $_REQUEST['hotel_step_id'];
Sessions::setRoomImage("");
Common::jsonSuccess("");
} else {
Common::jsonError("Error");
}
}