24 require_once
"./Services/Container/classes/class.ilContainer.php";
25 include_once
'./Modules/Course/classes/class.ilCourseConstants.php';
26 include_once
'./Services/Membership/interfaces/interface.ilMembershipRegistrationCodes.php';
80 #define("ILIAS_MODULE","course");
81 #define("KEEP_IMAGE_PATH",1);
83 $this->SUBSCRIPTION_DEACTIVATED = 1;
84 $this->SUBSCRIPTION_CONFIRMATION = 2;
85 $this->SUBSCRIPTION_DIRECT = 3;
86 $this->SUBSCRIPTION_PASSWORD = 4;
87 $this->SUBSCRIPTION_AUTOSUBSCRIPTION = 5;
88 $this->ARCHIVE_DISABLED = 1;
89 $this->ARCHIVE_READ = 2;
90 $this->ARCHIVE_DOWNLOAD = 3;
91 $this->ABO_ENABLED = 1;
92 $this->ABO_DISABLED = 0;
93 $this->SHOW_MEMBERS_ENABLED = 1;
94 $this->SHOW_MEMBERS_DISABLED = 0;
98 parent::__construct($a_id,$a_call_by_reference);
118 $this->reg_access_code = $a_code;
137 $this->reg_access_code_enabled = $a_status;
142 return $this->important;
146 $this->important = $a_info;
150 return $this->syllabus;
154 $this->syllabus = $a_syllabus;
158 return $this->contact_name;
162 $this->contact_name = $a_cn;
166 return $this->contact_consultation;
170 $this->contact_consultation = $a_value;
174 return $this->contact_phone;
178 $this->contact_phone = $a_value;
182 return $this->contact_email;
186 $this->contact_email = $a_value;
190 return $this->contact_responsibility;
194 $this->contact_responsibility = $a_value;
199 return (
int) $this->activation_type;
203 $this->activation_type = $a_type;
213 return $this->activation_start ? $this->activation_start : time();
217 $this->activation_start = $a_value;
221 return $this->activation_end ? $this->activation_end : mktime(0,0,0,12,12,date(
"Y",time())+2);
225 $this->activation_end = $a_value;
235 return $this->subscription_limitation_type;
239 $this->subscription_limitation_type = $a_type;
247 return $this->subscription_start ? $this->subscription_start : time();
251 $this->subscription_start = $a_value;
255 return $this->subscription_end ? $this->subscription_end : mktime(0,0,0,12,12,date(
"Y",time())+2);
259 $this->subscription_end = $a_value;
264 #return $this->subscription_type ? $this->subscription_type : $this->SUBSCRIPTION_DEACTIVATED;
268 $this->subscription_type = $a_value;
272 return $this->subscription_password;
276 $this->subscription_password = $a_value;
285 return (
bool) $this->waiting_list;
290 $this->waiting_list = (bool) $a_status;
313 $this->session_limit = $a_status;
330 $this->subscription_membership_limitation = $a_status;
340 $this->session_prev = $a_num;
359 $this->session_next = $a_num;
379 return (
bool) $this->subscription_membership_limitation;
384 return $this->subscription_max_members;
388 $this->subscription_max_members = $a_value;
403 $query =
"SELECT * FROM crs_settings ".
404 "WHERE obj_id = ".$ilDB->quote($a_course_id ,
'integer').
" ".
405 "AND sub_notify = 1";
407 return $res->numRows() ?
true :
false;
416 public function getSubItems($a_admin_panel_enabled =
false, $a_include_side_block =
false)
421 if (is_array($this->items[(
int) $a_admin_panel_enabled][(
int) $a_include_side_block]))
423 return $this->items[(int) $a_admin_panel_enabled][(
int) $a_include_side_block];
430 if(!is_array($this->items[
'sess']) or !$this->items[
'sess'])
432 return $this->items[(int) $a_admin_panel_enabled][(
int) $a_include_side_block];
437 return $this->items[(int) $a_admin_panel_enabled][(
int) $a_include_side_block];
440 if($a_include_side_block)
442 return $this->items[(int) $a_admin_panel_enabled][(
int) $a_include_side_block];
446 if(isset(
$_GET[
'crs_prev_sess']))
448 $ilUser->writePref(
'crs_sess_show_prev_'.$this->
getId(), (
string) (
int)
$_GET[
'crs_prev_sess']);
450 if(isset(
$_GET[
'crs_next_sess']))
452 $ilUser->writePref(
'crs_sess_show_next_'.$this->
getId(), (
string) (
int)
$_GET[
'crs_next_sess']);
457 $previous = $current = $next = array();
458 foreach($sessions as $key => $item)
476 $num_previous_remove = max(
480 while($num_previous_remove--)
482 if(!$ilUser->getPref(
'crs_sess_show_prev_'.$this->getId()))
484 array_shift($previous);
486 $this->items[
'sess_link'][
'prev'][
'value'] = 1;
489 $num_next_remove = max(
493 while($num_next_remove--)
495 if(!$ilUser->getPref(
'crs_sess_show_next_'.$this->getId()))
500 $this->items[
'sess_link'][
'next'][
'value'] = 1;
503 $sessions = array_merge($previous,$current,$next);
504 $this->items[
'sess'] = $sessions;
505 $this->items[(int) $a_admin_panel_enabled][(
int) $a_include_side_block] = $this->items;
506 return $this->items[(int) $a_admin_panel_enabled][(
int) $a_include_side_block];
512 return $this->subscription_notify ?
true :
false;
516 $this->subscription_notify = $a_value ?
true :
false;
521 $this->view_mode = $a_mode;
525 return $this->view_mode;
532 $query =
"SELECT view_mode FROM crs_settings WHERE obj_id = ".$ilDB->quote($a_id ,
'integer').
" ";
536 return $row->view_mode;
545 $query =
"SELECT abo FROM crs_settings WHERE obj_id = ".$ilDB->quote($a_id ,
'integer').
" ";
556 return $this->archive_start ? $this->archive_start : time();
560 $this->archive_start = $a_value;
564 return $this->archive_end ? $this->archive_end : mktime(0,0,0,12,12,date(
"Y",time())+2);
568 $this->archive_end = $a_value;
576 $this->archive_type = $a_value;
580 $this->abo = $a_status;
588 $this->show_members = $a_status;
592 return $this->show_members;
597 return $this->message;
601 $this->message = $a_message;
607 $this->message .=
"<br /> ";
609 $this->message .= $a_message;
645 include_once(
"./Modules/Course/classes/class.ilObjCourseAccess.php");
657 include_once(
"./Modules/Course/classes/class.ilObjCourseAccess.php");
676 return $this->ABO == $this->ABO_ENABLED;
679 function read($a_force_db =
false)
687 global $ilAppEventHandler;
697 $ilAppEventHandler->raise(
'Modules/Course',
699 array(
'object' => $this,
700 'obj_id' => $this->
getId(),
712 $this->latitude = $a_latitude;
732 $this->longitude = $a_longitude;
752 $this->locationzoom = $a_locationzoom;
772 $this->enablemap = $a_enablemap;
795 global
$ilDB,$ilUser;
803 $new_obj->getMemberObject()->add($ilUser->getId(),
IL_CRS_ADMIN);
809 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
813 include_once(
'Modules/Course/classes/class.ilCourseFile.php');
817 include_once(
'Services/Tracking/classes/class.ilLPObjSettings.php');
819 $obj_settings->cloneSettings($new_obj->getId());
820 unset($obj_settings);
824 $ilLog->write(__METHOD__.
': '.$this->getBigIconPath().
' '.$this->
getSmallIconPath());
842 global $ilObjDataCache;
847 include_once(
'Modules/Course/classes/class.ilCourseStart.php');
849 $start->cloneDependencies($a_target_id,$a_copy_id);
853 $this->items_obj->cloneDependencies($a_target_id,$a_copy_id);
856 include_once(
'Modules/Course/classes/class.ilCourseObjective.php');
858 $crs_objective->ilClone($a_target_id,$a_copy_id);
860 include_once(
'Services/Tracking/classes/class.ilLPCollections.php');
862 $lp_collection->cloneCollections($a_target_id,$a_copy_id);
876 global
$ilLog,$rbacadmin,$rbacreview;
879 $new_admin = $new_obj->getDefaultAdminRole();
880 $source_rolf = $rbacreview->getRoleFolderIdOfObject($this->
getRefId());
881 $target_rolf = $rbacreview->getRoleFolderIdOfObject($new_obj->getRefId());
883 if(!$admin || !$new_admin || !$source_rolf || !$target_rolf)
885 $ilLog->write(__METHOD__.
' : Error cloning auto generated role: il_crs_admin');
887 $rbacadmin->copyRolePermissions($admin,$source_rolf,$target_rolf,$new_admin,
true);
888 $ilLog->write(__METHOD__.
' : Finished copying of role crs_admin.');
891 $new_tutor = $new_obj->getDefaultTutorRole();
892 if(!$tutor || !$new_tutor)
894 $ilLog->write(__METHOD__.
' : Error cloning auto generated role: il_crs_tutor');
896 $rbacadmin->copyRolePermissions($tutor,$source_rolf,$target_rolf,$new_tutor,
true);
897 $ilLog->write(__METHOD__.
' : Finished copying of role crs_tutor.');
900 $new_member = $new_obj->getDefaultMemberRole();
901 if(!$member || !$new_member)
903 $ilLog->write(__METHOD__.
' : Error cloning auto generated role: il_crs_member');
905 $rbacadmin->copyRolePermissions($member,$source_rolf,$target_rolf,$new_member,
true);
906 $ilLog->write(__METHOD__.
' : Finished copying of role crs_member.');
916 #if(($this->getSubscriptionLimitationType() != IL_CRS_SUBSCRIPTION_DEACTIVATED) and
917 # $this->getSubscriptionType() == )
919 # $this->appendMessage($this->lng->txt('crs_select_registration_type'));
925 $this->
appendMessage($this->lng->txt(
"activation_times_not_valid"));
930 $this->
appendMessage($this->lng->txt(
"subscription_times_not_valid"));
932 #if((!$this->getActivationUnlimitedStatus() and
933 # !$this->getSubscriptionUnlimitedStatus()) and
934 # ($this->getSubscriptionStart() > $this->getActivationEnd() or
935 # $this->getSubscriptionStart() < $this->getActivationStart() or
936 # $this->getSubscriptionEnd() > $this->getActivationEnd() or
937 # $this->getSubscriptionEnd() < $this->getActivationStart()))
940 # $this->appendMessage($this->lng->txt("subscription_time_not_within_activation"));
944 $this->
appendMessage($this->lng->txt(
"crs_password_required"));
948 $this->
appendMessage($this->lng->txt(
"max_members_not_numeric"));
953 $this->
appendMessage($this->lng->txt(
"archive_times_not_valid"));
971 foreach ($emails as $email) {
972 $email = trim($email);
975 $ilErr->appendMessage($this->lng->txt(
'contact_email_not_valid').
" '".$email.
"'");
1001 global $ilAppEventHandler;
1004 if (!parent::delete())
1017 $this->items_obj->deleteAllEntries();
1019 include_once(
'Modules/Course/classes/class.ilCourseParticipants.php');
1023 $this->archives_obj->deleteAll();
1025 include_once
'./Modules/Course/classes/class.ilCourseObjective.php';
1028 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
1031 include_once
'./Modules/Course/classes/class.ilCourseFile.php';
1034 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
1037 $ilAppEventHandler->raise(
'Modules/Course',
1039 array(
'object' => $this,
1040 'obj_id' => $this->
getId(),
1054 global $ilAppEventHandler,
$ilLog;
1056 include_once(
'./Services/Container/classes/class.ilContainerSortingSettings.php');
1065 $ilAppEventHandler->raise(
'Modules/Course',
1067 array(
'object' => $this,
1068 'obj_id' => $this->
getId(),
1079 $query =
"SELECT * FROM crs_settings WHERE obj_id = ".$ilDB->quote($this->
getId() ,
'integer').
" ";
1082 if(!
$res->numRows())
1087 $query =
"UPDATE crs_settings SET ".
1088 "syllabus = ".$ilDB->quote($this->
getSyllabus() ,
'text').
", ".
1089 "contact_name = ".$ilDB->quote($this->
getContactName() ,
'text').
", ".
1091 "contact_phone = ".$ilDB->quote($this->
getContactPhone() ,
'text').
", ".
1092 "contact_email = ".$ilDB->quote($this->
getContactEmail() ,
'text').
", ".
1096 "activation_end = ".$ilDB->quote($this->
getActivationEnd() ,
'integer').
", ".
1105 "view_mode = ".$ilDB->quote($this->
getViewMode() ,
'integer').
", ".
1106 "archive_start = ".$ilDB->quote($this->
getArchiveStart() ,
'integer').
", ".
1107 "archive_end = ".$ilDB->quote($this->
getArchiveEnd() ,
'integer').
", ".
1108 "archive_type = ".$ilDB->quote($this->
getArchiveType() ,
'integer').
", ".
1109 "abo = ".$ilDB->quote($this->
getAboStatus() ,
'integer').
", ".
1112 "show_members = ".$ilDB->quote($this->
getShowMembers() ,
'integer').
", ".
1113 "latitude = ".$ilDB->quote($this->
getLatitude() ,
'text').
", ".
1114 "longitude = ".$ilDB->quote($this->
getLongitude() ,
'text').
", ".
1115 "location_zoom = ".$ilDB->quote($this->
getLocationZoom() ,
'integer').
", ".
1116 "enable_course_map = ".$ilDB->quote((
int) $this->
getEnableCourseMap() ,
'integer').
", ".
1123 "WHERE obj_id = ".$ilDB->quote($this->
getId() ,
'integer').
"";
1168 include_once
'./Services/Membership/classes/class.ilMembershipRegistrationCodeUtils.php';
1178 include_once
'./Services/Membership/classes/class.ilMembershipRegistrationCodeUtils.php';
1181 $query =
"INSERT INTO crs_settings (obj_id,syllabus,contact_name,contact_responsibility,".
1182 "contact_phone,contact_email,contact_consultation,activation_type,activation_start,".
1183 "activation_end,sub_limitation_type,sub_start,sub_end,sub_type,sub_password,sub_mem_limit,".
1184 "sub_max_members,sub_notify,view_mode,archive_start,archive_end,archive_type,abo," .
1185 "latitude,longitude,location_zoom,enable_course_map,waiting_list,show_members, ".
1186 "session_limit,session_prev,session_next, reg_ac_enabled, reg_ac, auto_noti_disabled) ".
1188 $ilDB->quote($this->
getId() ,
'integer').
", ".
1210 $ilDB->quote($this->ABO_ENABLED ,
'integer').
", ".
1215 #"objective_view = '0', ".
1229 include_once(
'./Services/Container/classes/class.ilContainerSortingSettings.php');
1240 $query =
"SELECT * FROM crs_settings WHERE obj_id = ".$ilDB->quote($this->
getId() ,
'integer').
"";
1287 include_once
"./Modules/Course/classes/class.ilCourseWaitingList.php";
1289 if(!is_object($this->waiting_list_obj))
1306 include_once
"./Modules/Course/classes/class.ilCourseParticipant.php";
1320 include_once
"./Modules/Course/classes/class.ilCourseParticipants.php";
1353 include_once
"./Modules/Course/classes/class.ilCourseItems.php";
1355 if(!is_object($this->items_obj))
1371 if(is_object($this->items_obj))
1382 include_once
"./Modules/Course/classes/class.ilCourseArchives.php";
1384 if(!is_object($this->archives_obj))
1396 global $rbacadmin,$rbacreview,
$ilDB;
1401 $role_obj = $rolf_obj->createRole(
"il_crs_admin_".$this->
getRefId(),
"Admin of course obj_no.".$this->
getId());
1402 $admin_id = $role_obj->getId();
1405 $query =
"SELECT obj_id FROM object_data ".
1406 " WHERE type='rolt' AND title='il_crs_admin'";
1409 $rbacadmin->copyRoleTemplatePermissions(
$res->obj_id,ROLE_FOLDER_ID,$rolf_obj->getRefId(),$role_obj->getId());
1412 $ops = $rbacreview->getOperationsOfRole($role_obj->getId(),
"crs",$rolf_obj->getRefId());
1413 $rbacadmin->grantPermission($role_obj->getId(),$ops,$this->
getRefId());
1421 $role_obj = $rolf_obj->createRole(
"il_crs_tutor_".$this->
getRefId(),
"Tutors of course obj_no.".$this->
getId());
1422 $member_id = $role_obj->getId();
1425 $query =
"SELECT obj_id FROM object_data ".
1426 " WHERE type='rolt' AND title='il_crs_tutor'";
1428 $rbacadmin->copyRoleTemplatePermissions(
$res->obj_id,ROLE_FOLDER_ID,$rolf_obj->getRefId(),$role_obj->getId());
1431 $ops = $rbacreview->getOperationsOfRole($role_obj->getId(),
"crs",$rolf_obj->getRefId());
1432 $rbacadmin->grantPermission($role_obj->getId(),$ops,$this->
getRefId());
1440 $role_obj = $rolf_obj->createRole(
"il_crs_member_".$this->
getRefId(),
"Member of course obj_no.".$this->
getId());
1441 $member_id = $role_obj->getId();
1444 $query =
"SELECT obj_id FROM object_data ".
1445 " WHERE type='rolt' AND title='il_crs_member'";
1447 $rbacadmin->copyRoleTemplatePermissions(
$res->obj_id,ROLE_FOLDER_ID,$rolf_obj->getRefId(),$role_obj->getId());
1450 $ops = $rbacreview->getOperationsOfRole($role_obj->getId(),
"crs",$rolf_obj->getRefId());
1451 $rbacadmin->grantPermission($role_obj->getId(),$ops,$this->
getRefId());
1485 global $rbacadmin, $rbacreview, $rbacsystem;
1488 $rolf_data = $rbacreview->getRoleFolderOfObject($this->
getRefId());
1491 $arr_parentRoles = $rbacreview->getParentRoleIds($this->
getRefId());
1492 $arr_relevantParentRoleIds = array_diff(array_keys($arr_parentRoles),$this->
getDefaultCourseRoles());
1497 if (is_null($template_id))
1499 $template_ops = array();
1501 $template_ops = $rbacreview->getOperationsOfRole($template_id,
'crs', ROLE_FOLDER_ID);
1504 foreach ($arr_relevantParentRoleIds as $parentRole)
1506 if ($rbacreview->isProtected($arr_parentRoles[$parentRole][
'parent'],$parentRole))
1511 $granted_permissions = array();
1515 $rbacadmin->deleteLocalRole($parentRole,$rolf_data[
"child"]);
1522 $current_ops = $rbacreview->getRoleOperationsOnObject($parentRole, $this->
getRefId());
1523 $rbacadmin->revokePermission($this->
getRefId(), $parentRole);
1524 foreach ($template_ops as $template_op)
1526 if (in_array($template_op,$current_ops))
1528 array_push($granted_permissions,$template_op);
1531 if (!empty($granted_permissions))
1533 $rbacadmin->grantPermission($parentRole, $granted_permissions, $this->
getRefId());
1540 if (! is_null($template_id))
1542 $rbacadmin->copyRolePermissionIntersection(
1543 $template_id, ROLE_FOLDER_ID,
1544 $parentRole, $arr_parentRoles[$parentRole][
'parent'],
1545 $rolf_data[
"child"], $parentRole
1548 $rbacadmin->assignRoleToFolder($parentRole,$rolf_data[
"child"],
"false");
1562 $q =
"SELECT obj_id FROM object_data WHERE type='rolt' AND title='il_crs_non_member'";
1563 $res = $this->ilias->db->query($q);
1566 return $row[
"obj_id"];
1577 global $rbacadmin,$rbacreview;
1579 if (empty($this->local_roles))
1581 $this->local_roles = array();
1582 $rolf = $rbacreview->getRoleFolderOfObject($this->
getRefId());
1583 $role_arr = $rbacreview->getRolesOfRoleFolder($rolf[
"ref_id"]);
1585 foreach ($role_arr as $role_id)
1587 if ($rbacreview->isAssignable($role_id,$rolf[
"ref_id"]) ==
true)
1589 $role_Obj = $this->ilias->obj_factory->getInstanceByObjId($role_id);
1597 $role_name = $role_Obj->getTitle();
1599 $this->local_roles[$role_name] = $role_Obj->getId();
1604 return $this->local_roles;
1620 global $rbacadmin, $rbacreview;
1622 if (strlen($a_crs_id) > 0)
1624 $crs_id = $a_crs_id;
1631 $rolf = $rbacreview->getRoleFolderOfObject($crs_id);
1632 $role_arr = $rbacreview->getRolesOfRoleFolder($rolf[
"ref_id"]);
1634 foreach ($role_arr as $role_id)
1636 $role_Obj =& $this->ilias->obj_factory->getInstanceByObjId($role_id);
1638 $crs_Member =
"il_crs_member_".$crs_id;
1639 $crs_Admin =
"il_crs_admin_".$crs_id;
1640 $crs_Tutor =
"il_crs_tutor_".$crs_id;
1642 if (strcmp($role_Obj->getTitle(), $crs_Member) == 0 )
1644 $arr_crsDefaultRoles[
"crs_member_role"] = $role_Obj->getId();
1647 if (strcmp($role_Obj->getTitle(), $crs_Admin) == 0)
1649 $arr_crsDefaultRoles[
"crs_admin_role"] = $role_Obj->getId();
1652 if (strcmp($role_Obj->getTitle(), $crs_Tutor) == 0)
1654 $arr_crsDefaultRoles[
"crs_tutor_role"] = $role_Obj->getId();
1658 return $arr_crsDefaultRoles;
1667 $rolf = $rbacreview->getRoleFolderOfObject($this->
getRefId());
1669 return $rbacreview->getRolesOfRoleFolder($rolf[
"ref_id"],
false);
1676 $query =
"DELETE FROM crs_settings ".
1677 "WHERE obj_id = ".$ilDB->quote($this->
getId() ,
'integer').
" ";
1688 foreach($local_roles as $role_id)
1691 if(substr(
$title,0,8) ==
'il_crs_m')
1702 foreach($local_roles as $role_id)
1706 if(!strcmp($tmp_role->getTitle(),
"il_crs_tutor_".$this->getRefId()))
1718 foreach($local_roles as $role_id)
1722 if(!strcmp($tmp_role->getTitle(),
"il_crs_admin_".$this->getRefId()))
1736 $a_usr_id = $a_usr_id ? $a_usr_id : $ilUser->getId();
1738 include_once
"./Modules/Course/classes/class.ilCourseParticipants.php";
1754 include_once
'./Modules/Course/classes/class.ilCourseLMHistory.php';
1757 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
1761 include_once
'./Modules/Course/classes/class.ilCourseObjectiveResult.php';
1778 include_once(
'./Services/WebServices/ECS/classes/class.ilECSContentWriter.php');
1781 $writer->setExportable($a_export);
1782 $writer->setOwnerId($a_owner);
1783 $writer->setParticipantIds((array) $a_mids);
1830 include_once
'./Services/WebServices/ECS/classes/class.ilECSExport.php';
1833 foreach($export_servers as $server_id)
1835 include_once
'./Services/WebServices/ECS/classes/class.ilECSSetting.php';
1840 include_once(
'./Services/WebServices/ECS/classes/class.ilECSContentWriter.php');
1842 $writer->refreshSettings();
1846 $ilLog->write(__METHOD__.
': Cannot save ECS settings. '.$exc->getMessage());
1861 $ilBench->start(
"Course",
"initCourseItemObject");
1863 $ilBench->stop(
"Course",
"initCourseItemObject");
1865 $ilBench->start(
"Course",
"addAdditionalSubItemInformation");
1866 $this->items_obj->addAdditionalSubItemInformation($a_item_data);
1867 $ilBench->stop(
"Course",
"addAdditionalSubItemInformation");
1879 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentTemplate.php');
1880 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
1890 $app->setSubtitle(
'crs_cal_activation_start');
1898 $app->setSubtitle(
'crs_cal_activation_end');
1908 $app->setSubtitle(
'crs_cal_reg_start');
1916 $app->setSubtitle(
'crs_cal_reg_end');
1923 return $apps ? $apps : array();
1931 ###### Interface ilMembershipRegistrationCodes
1940 $query =
"SELECT obj_id FROM crs_settings ".
1941 "WHERE reg_ac_enabled = ".$ilDB->quote(1,
'integer').
" ".
1942 "AND reg_ac = ".$ilDB->quote($a_code,
'text');
1948 $obj_ids[] =
$row->obj_id;
1961 include_once
'./Services/Membership/exceptions/class.ilMembershipRegistrationException.php';
1962 include_once
"./Modules/Course/classes/class.ilCourseParticipants.php";
1965 if($part->isAssigned($a_user_id))
1970 if(!$a_force_registration)
1973 if(!self::_registrationEnabled($this->
getId()))
1975 $this->lng->loadLanguageModule(
'crs');
1982 include_once(
'./Modules/Course/classes/class.ilCourseWaitingList.php');
1991 $part->add($a_user_id,$a_role);
1992 $part->sendNotification($part->NOTIFY_ACCEPT_USER, $a_user_id);
1994 include_once
'./Modules/Forum/classes/class.ilForumNotification.php';
2020 $this->auto_noti_disabled = $value;