31 require_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
32 $input_params = $params[0];
33 $output_params = $params[1];
36 $learners = $participants->getMembers();
37 $retval = array($output_params[0] => $learners);
61 require_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
62 $input_params = $params[0];
63 $output_params = $params[1];
66 $tutors = $participants->getTutors();
67 $retval = array($output_params[0] => $tutors);
91 require_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
92 $input_params = $params[0];
93 $output_params = $params[1];
96 $admins = $participants->getAdmins();
97 $retval = array($output_params[0] => $admins);
122 $input_params = $params[0];
123 $output_params = $params[1];
125 require_once
'./Modules/Course/classes/class.ilObjCourse.php';
128 $course_object->setType(
'crs');
129 $course_object->setTitle($input_params[
'crsTitle']);
130 $course_object->setDescription(
"");
131 $course_object->create(
true);
132 $course_object->createReference();
133 $course_object->putInTree($input_params[
'destRefId']);
134 $course_object->setPermissions($input_params[
'destRefId']);
136 $retval = array($output_params[0] => $course_object->getRefId());
160 require_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
161 $input_params = $params[0];
162 $output_params = $params[1];
165 foreach ($input_params[
'usrIdList'] as $user_id) {
189 require_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
190 $input_params = $params[0];
191 $output_params = $params[1];
194 foreach ($input_params[
'usrIdList'] as $user_id) {
217 require_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
218 $input_params = $params[0];
219 $output_params = $params[1];
222 foreach ($input_params[
'usrIdList'] as $user_id) {
static assignTutorsToCourse($context, $params)
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
static readTutorsFromCourse($context, $params)
static _lookupObjectId($a_ref_id)
lookup object id
static readLearnersFromCourse($context, $params)
static readAdminsFromCourse($context, $params)
const IL_CRS_ADMIN
Base class for course and group participants.
Class ilModulesCourseTasks.
static assignLearnersToCourse($context, $params)
static createCourse($context, $params)
static assignAdminsToCourse($context, $params)