コード例 #1
0
ファイル: lib.php プロジェクト: narasimhaeabyas/tataaiapro
 /**
  * Creates a new instance of class
  *
  * Please use {@link course_get_format($courseorid)} to get an instance of the format class
  *
  * @param string $format
  * @param int $courseid
  * @return format_topcoll
  */
 protected function __construct($format, $courseid) {
     if ($courseid === 0) {
         global $COURSE;
         $courseid = $COURSE->id;  // Save lots of global $COURSE as we will never be the site course.
     }
     parent::__construct($format, $courseid);
 }