2 require_once ('../MoodleWS.php');
4 $moodle=new MoodleWS();
5 /**test code for MoodleWS: Enrol students in a course
6 * @param integer $client
7 * @param string $sesskey
8 * @param string $courseid
9 * @param (enrolStudentsInput) array of string $userids
10 * @param string $idfield
11 * @return enrolStudentsReturn
14 $res=$moodle->enrol_students(0,'','',$userids,'');
16 print($res->getError());
17 print($res->getStudents());