コード例 #1
0
ファイル: video_live_service.php プロジェクト: samuel072/PHP
 /**
  * 根据直播视频的id 查询对应的类型、 内容、 标签  并赋值给视频直播
  * @param unknown $video
  */
 public function save_foreign($video)
 {
     $categoyMod = new CategoryModule();
     $tagMod = new TagModule();
     $sectTab = new SectionTable();
     $category = $categoyMod->get_by_id($video->category->id);
     $sect_list = $sectTab->get_sec_by_videoId($video->id);
     $tag_list = $tagMod->get_video_tag_by_videoId($video->id);
     $video->category = $category;
     // 存入类型
     $video->content = $sect_list;
     // 存入内容
     $video->tags = $tag_list;
     // 存入标签
 }
コード例 #2
0
ファイル: section_module.php プロジェクト: samuel072/PHP
 public function update_video($section)
 {
     $sectTab = new SectionTable();
     return $sectTab->update_section($section);
 }
コード例 #3
0
ファイル: activity_module.php プロジェクト: samuel072/PHP
 public function remove_section($sec_id)
 {
     $table = new SectionTable();
     return $table->remove_section($sec_id);
 }