本文整理汇总了PHP中Sessions::setHotelImageUploadList方法的典型用法代码示例。如果您正苦于以下问题:PHP Sessions::setHotelImageUploadList方法的具体用法?PHP Sessions::setHotelImageUploadList怎么用?PHP Sessions::setHotelImageUploadList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sessions
的用法示例。
在下文中一共展示了Sessions::setHotelImageUploadList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: floor
/* find the "desired height" of this thumbnail, relative to the desired width */
$desired_height = floor($height * ($desired_width / $width));
/* create a new, "virtual" image */
$virtual_image = imagecreatetruecolor($desired_width, $desired_height);
/* copy source image at a resized size */
imagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);
/* create the physical thumbnail image to its destination */
imagejpeg($virtual_image, $dest);
//----------------------------------
$image_list .= $upload->file_copy . ',';
$session->setHotelImageUploadList($image_list);
$hotels = new Hotels();
$hotels->setHotelId($hotel_file_id);
$hotels->extractor($hotels->getHotelFromId());
$hotel_img = $hotels->hotelsImages();
//$img_list = "";
if ($hotel_img != '') {
$hotel_img .= ',' . $upload->file_copy;
$hotels->updateHotelsImages($hotel_img);
//$img_list = $hotel_img;
} else {
$hotels->updateHotelsImages($upload->file_copy);
//$img_list = $upload->file_copy;