/** * 根据直播视频的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; // 存入标签 }
public function update_video($section) { $sectTab = new SectionTable(); return $sectTab->update_section($section); }
public function remove_section($sec_id) { $table = new SectionTable(); return $table->remove_section($sec_id); }