/** * Create parallel group * @param type $course * @param type $group */ protected function createParallelGroup($a_content_id, $course, $group, $parent_ref) { include_once './Modules/Group/classes/class.ilObjGroup.php'; $group_obj = new ilObjGroup(); $title = strlen($group->title) ? $group->title : $course->title; $group_obj->setTitle($title); $group_obj->setMaxMembers((int) $group->maxParticipants); $group_obj->create(); $group_obj->createReference(); $group_obj->putInTree($parent_ref); $group_obj->setPermissions($parent_ref); $group_obj->initGroupStatus(GRP_TYPE_CLOSED); $this->setImported($course->lectureID, $group_obj, $a_content_id, $group->id); $this->setObjectCreated(true); }
/** * Create parallel group * @param type $course * @param type $group */ protected function createParallelGroup($course, $group, $parent_ref) { include_once './Modules/Group/classes/class.ilObjGroup.php'; $group_obj = new ilObjGroup(); $group_obj->setTitle($group->title); $group_obj->setMaxMembers((int) $group->maxParticipants); $group_obj->create(); $group_obj->createReference(); $group_obj->putInTree($parent_ref); $group_obj->setPermissions($parent_ref); $group_obj->initGroupStatus(GRP_TYPE_CLOSED); $this->setImported($course->basicData->id, $group_obj, 0, $group->id); }