示例#1
0
 public function totalUser($filter = false, $level = false)
 {
     if ($this->id_edition != 0) {
         require_once _lms_ . '/lib/lib.edition.php';
         $edition_man = new EditionManager();
         return $edition_man->getTotalUserSubscribed($this->id_course, $this->id_edition, $filter);
     } elseif ($this->id_date != 0) {
         require_once _lms_ . '/lib/lib.date.php';
         $date_man = new DateManager();
         return $date_man->getTotalUserSubscribed($this->id_course, $this->id_date, $filter);
     } else {
         require_once _lms_ . '/lib/lib.subscribe.php';
         $subscribe_man = new CourseSubscribe_Manager();
         return $subscribe_man->getTotalUserSubscribed($this->id_course, $filter, $level);
     }
 }