示例#1
0
文件: media.php 项目: kimblemj/server
 public static function getMedia($pack)
 {
     if (!($sql_media = dbconnection::queryObject("SELECT * FROM media WHERE media_id = '{$pack->media_id}' LIMIT 1"))) {
         return new return_package(0, media::defaultMediaObject($pack->media_id));
     }
     return new return_package(0, media::mediaObjectFromSQL($sql_media));
 }