/**
  * _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);
 }