コード例 #1
0
 /**
  * _construct
  *
  * magic constructor method
  *
  * @param    $url    Optional url parameted to post generated xml to.
  */
 public function __construct($course, $population, $role = 'student', $args = '')
 {
     if (!is_array($course)) {
         throw new Exception('Courses must be in an array of Moodle course ids!: ' . $course);
     }
     //end if
     parent::__construct($course, $population, $role, $args);
 }
コード例 #2
0
 /**
  * _construct
  *
  * magic constructor method
  *
  * @param    $url    Optional url parameted to post generated xml to.
  */
 public function __construct($course, $population, $role = 'student', $args = '')
 {
     parent::__construct($course, $population, $role, $args);
 }