예제 #1
0
파일: Course.php 프로젝트: krisrita/udo
 /**
  * 临时::课程的评论数
  * 数据导入时没有对一些统计数据加处理.所以这里做了一个重新统计.
  */
 public function getCourseCommentTotal($courseId)
 {
     $tblComment = new DB_Haodu_CourseComment();
     return $tblComment->queryCount("where course_id = {$courseId}");
 }
예제 #2
0
파일: Video.php 프로젝트: krisrita/udo
 /**
  * 视频评论数量
  */
 public function getVideoCommentNum($videoId)
 {
     $tbl = new DB_Haodu_CourseComment();
     return $tbl->queryCount("where video_id = {$videoId}");
 }