コード例 #1
0
 public static function fetchFromParameters($postParams, $fileParams = null)
 {
     global $systemConfiguration;
     global $logger;
     RoomImage::$staticErrors = array();
     $roomImage = new RoomImage();
     $roomImage->galleryImage = GalleryImage::fetchFromParameters($postParams, $fileParams);
     if (isset($postParams['room_id']) && is_numeric($postParams['room_id'])) {
         $roomImage->roomId = intval($postParams['room_id']);
     } else {
         if (is_null($roomImage->galleryImage)) {
             $logger->LogError("Gallery image is null.");
         }
     }
     return $roomImage;
 }