Beispiel #1
0
 /**
  * 练习题
  */
 public function getPractiseBySeq($sectionId, $seq)
 {
     $tblCoursePractise = new DB_Haodu_CoursePractise();
     $practise = $tblCoursePractise->scalar("id, seq, practise_id, video_id", "where section_id={$sectionId} and seq={$seq}");
     $practiseInfo = $this->getPractise($practise['practise_id']);
     if (!$practiseInfo) {
         return false;
     }
     $practiseInfo['video_id'] = $practise['video_id'];
     $practiseInfo['practise_id'] = $practise['practise_id'];
     return $practiseInfo;
 }
Beispiel #2
0
 /**
  * 视频所属习题
  */
 public function getVideoBelongPractise($videoId)
 {
     $tbl = new DB_Haodu_CoursePractise();
     return $tbl->scalar("*", "where video_id={$videoId}");
 }