95 public function __construct(
int $a_id = 0,
bool $a_call_by_reference =
true)
102 $this->course_logger = $DIC->logger()->crs();
108 $query =
'SELECT tutorial_support_block FROM crs_settings' 109 .
' WHERE obj_id = ' .
$GLOBALS[
'DIC'][
'ilDB']->quote($a_obj_id,
'integer');
112 return (
bool) $row->tutorial_support_block;
119 $query =
'SELECT show_members FROM crs_settings ' .
120 'WHERE obj_id = ' .
$GLOBALS[
'DIC'][
'ilDB']->quote($a_obj_id,
'integer');
123 return (
bool) $row->show_members;
135 $this->member_export = $a_mem_export;
145 $this->reg_access_code = $a_code;
155 $this->reg_access_code_enabled = $a_status;
165 $this->important = $a_info;
175 $this->syllabus = $a_syllabus;
185 $this->target_group = $a_tg;
195 $this->contact_name = $a_cn;
205 $this->contact_consultation = $a_value;
215 $this->contact_phone = $a_value;
225 $this->contact_email = $a_value;
235 $this->contact_responsibility = $a_value;
250 $this->activation_start = $a_value;
260 $this->activation_end = $a_value;
265 $this->activation_visibility = $a_value;
280 $this->subscription_limitation_type = $a_type;
295 $this->subscription_start = $a_value;
305 $this->subscription_end = $a_value;
315 $this->subscription_type = $a_value;
325 $this->subscription_password = $a_value;
340 $this->waiting_list = $a_status;
356 $this->session_limit = $a_status;
366 $this->subscription_membership_limitation = $a_status;
371 $this->session_prev = $a_num;
381 $this->session_next = $a_num;
401 $this->subscription_max_members = $a_value;
408 $ilDB = $DIC->database();
409 $query =
"SELECT * FROM crs_settings " .
410 "WHERE obj_id = " .
$ilDB->quote($a_course_id,
'integer') .
" " .
411 "AND sub_notify = 1";
413 return (
bool)
$res->numRows();
423 $this->view_mode = $a_mode;
435 $ilDB = $DIC[
'ilDB'];
437 $query =
'SELECT timing_mode FROM crs_settings ' .
438 'WHERE obj_id = ' .
$ilDB->quote($a_obj_id,
'integer');
442 return (
int) $row->timing_mode;
449 $this->timing_mode = $a_mode;
459 $this->tutorial_support_block_setting_value = $value;
471 $ilDB = $DIC[
'ilDB'];
473 $query =
"SELECT view_mode FROM crs_settings WHERE obj_id = " .
$ilDB->quote($a_id,
'integer') .
" ";
476 return $row->view_mode;
485 $ilDB = $DIC[
'ilDB'];
487 $query =
"SELECT abo FROM crs_settings WHERE obj_id = " .
$ilDB->quote($a_id,
'integer') .
" ";
497 $this->abo = $a_status;
507 $this->show_members = $a_status;
517 $this->mail_members = $a_type;
532 $this->message = $a_message;
538 $this->message .=
"<br /> ";
540 $this->message .= $a_message;
585 $ilAppEventHandler = $DIC[
'ilAppEventHandler'];
587 $id = parent::create();
591 $this->app_event_handler->raise(
592 'components/ILIAS/Course',
594 array(
'object' => $this,
595 'obj_id' => $this->
getId(),
605 $this->latitude = $a_latitude;
615 $this->longitude = $a_longitude;
625 $this->locationzoom = $a_locationzoom;
635 $this->enablemap = $a_enablemap;
651 ($start instanceof \
ilDate && !$end instanceof
ilDate) ||
652 ($end instanceof \ilDate && !$start instanceof ilDate)
657 if ($start instanceof \ilDate) {
668 $this->course_start_time_indication = $time_indication;
678 $this->crs_start = $a_value;
688 $this->crs_end = $a_value;
698 $this->leave_end = $a_value;
708 if ($a_value !==
null) {
711 $this->min_members = $a_value;
721 $this->auto_fill_from_waiting = $a_value;
736 $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
742 $new_obj->getMemberObject()->updateContact($this->
user->getId(), 1);
745 if ($cwo->isRootNode($this->getRefId())) {
753 $obj_settings->cloneSettings($new_obj->getId());
754 unset($obj_settings);
764 $cloneAction->cloneCertificate($this, $new_obj);
767 $book_service->cloneSettings($this->
getId(), $new_obj->getId());
770 foreach ($badges as $badge) {
771 $badge->clone($new_obj->getId());
782 parent::cloneDependencies($target_id, $copy_id);
786 $start->cloneDependencies($target_id, $copy_id);
796 $crs_objective->ilClone($target_id, $copy_id);
800 $this->course_logger->info(
'Handling grouping id: ' . $grouping_id);
801 $grouping = new \ilObjCourseGrouping($grouping_id);
802 $grouping->cloneGrouping($target_id, $copy_id);
813 $new_admin = $new_obj->getDefaultAdminRole();
815 if (!$admin || !$new_admin || !$this->
getRefId() || !$new_obj->
getRefId()) {
816 $this->course_logger->debug(
'Error cloning auto generated role: il_crs_admin');
818 $this->rbac_admin->copyRolePermissions($admin, $this->
getRefId(), $new_obj->
getRefId(), $new_admin,
true);
819 $this->course_logger->debug(
'Finished copying of role crs_admin.');
822 $new_tutor = $new_obj->getDefaultTutorRole();
823 if (!$tutor || !$new_tutor) {
824 $this->course_logger->info(
'Error cloning auto generated role: il_crs_tutor');
826 $this->rbac_admin->copyRolePermissions($tutor, $this->
getRefId(), $new_obj->
getRefId(), $new_tutor,
true);
827 $this->course_logger->info(
'Finished copying of role crs_tutor.');
830 $new_member = $new_obj->getDefaultMemberRole();
831 if (!$member || !$new_member) {
832 $this->course_logger->debug(
'Error cloning auto generated role: il_crs_member');
834 $this->rbac_admin->copyRolePermissions($member, $this->
getRefId(), $new_obj->
getRefId(), $new_member,
true);
835 $this->course_logger->debug(
'Finished copying of role crs_member.');
878 foreach ($emails as $email) {
879 $email = trim($email);
881 $this->error->appendMessage($this->
lng->txt(
'contact_email_not_valid') .
" '" . $email .
"'");
898 public function delete():
bool 901 if (!parent::delete()) {
922 $this->app_event_handler->raise(
923 'components/ILIAS/Course',
925 array(
'object' => $this,
926 'obj_id' => $this->
getId(),
946 $this->app_event_handler->raise(
947 'components/ILIAS/Course',
949 array(
'object' => $this,
950 'obj_id' => $this->
getId(),
961 $query =
"SELECT * FROM crs_settings WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer') .
" ";
962 $res = $this->db->query($query);
964 if (!
$res->numRows()) {
968 $query =
"UPDATE crs_settings SET " .
970 "syllabus = " . $this->db->quote($this->
getSyllabus(),
'text') .
", " .
971 "contact_name = " . $this->db->quote($this->
getContactName(),
'text') .
", " .
973 "contact_phone = " . $this->db->quote($this->
getContactPhone(),
'text') .
", " .
974 "contact_email = " . $this->db->quote($this->
getContactEmail(),
'text') .
", " .
976 "activation_type = " . $this->db->quote(!$this->
getOfflineStatus(),
'integer') .
", " .
985 "view_mode = " . $this->db->quote($this->
getViewMode(),
'integer') .
", " .
986 'timing_mode = ' . $this->db->quote($this->
getTimingMode(),
'integer') .
', ' .
987 "abo = " . $this->db->quote($this->
getAboStatus(),
'integer') .
", " .
991 "show_members = " . $this->db->quote($this->
getShowMembers(),
'integer') .
", " .
993 "latitude = " . $this->db->quote($this->
getLatitude(),
'text') .
", " .
994 "longitude = " . $this->db->quote($this->
getLongitude(),
'text') .
", " .
995 "location_zoom = " . $this->db->quote($this->
getLocationZoom(),
'integer') .
", " .
996 "enable_course_map = " . $this->db->quote((
int) $this->
getEnableCourseMap(),
'integer') .
", " .
1002 'auto_notification = ' . $this->db->quote((
int) $this->
getAutoNotification(),
'integer') .
', ' .
1005 'period_start = ' . $this->db->quote(
1009 'period_end = ' . $this->db->quote(
1013 'period_time_indication = ' . $this->db->quote(
1018 'leave_end = ' . $this->db->quote(
1023 "WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer');
1025 $res = $this->db->manipulate($query);
1028 if ($this->ref_id ??
false) {
1040 $item->update($this->ref_id);
1083 $new_obj->setCoursePeriod(
1104 $query =
"INSERT INTO crs_settings (obj_id,syllabus,contact_name,contact_responsibility," .
1105 "contact_phone,contact_email,contact_consultation," .
1106 "sub_limitation_type,sub_start,sub_end,sub_type,sub_password,sub_mem_limit," .
1107 "sub_max_members,sub_notify,view_mode,timing_mode,abo," .
1108 "latitude,longitude,location_zoom,enable_course_map,waiting_list,show_members,show_members_export, " .
1109 "session_limit,session_prev,session_next, reg_ac_enabled, reg_ac, auto_notification, status_dt, " .
1110 "mail_members_type, tutorial_support_block) " .
1112 $this->db->quote($this->
getId(),
'integer') .
", " .
1113 $this->db->quote($this->
getSyllabus(),
'text') .
", " .
1129 $this->db->quote($this->
getAboStatus(),
'integer') .
", " .
1130 $this->db->quote($this->
getLatitude(),
'text') .
", " .
1131 $this->db->quote($this->
getLongitude(),
'text') .
", " .
1134 #
"objective_view = '0', ".
1149 $res = $this->db->manipulate($query);
1159 $query =
"SELECT * FROM crs_settings WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer');
1160 $res = $this->db->query($query);
1202 if ($row->period_time_indication) {
1207 } elseif (!is_null($row->period_start) && !is_null($row->period_end)) {
1220 if ($this->ref_id ??
false) {
1222 switch ($activation[
"timing_type"]) {
1235 $this->waiting_list_obj =
new ilCourseWaitingList($this->
getId());
1270 'il_crs_admin_' . $this->
getRefId(),
1271 "Admin of crs obj_no." . $this->
getId(),
1276 'il_crs_tutor_' . $this->
getRefId(),
1277 "Tutor of crs obj_no." . $this->
getId(),
1282 'il_crs_member_' . $this->
getRefId(),
1283 "Member of crs obj_no." . $this->
getId(),
1298 $parent_roles = $this->rbac_review->getParentRoleIds($parent_ref_id);
1299 foreach ($parent_roles as $parent_role) {
1300 $this->rbac_admin->initIntersectionPermissions(
1302 $parent_role[
'obj_id'],
1303 $parent_role[
'parent'],
1313 $q =
"SELECT obj_id FROM object_data WHERE type='rolt' AND title='il_crs_non_member'";
1316 return (
int) $row[
"obj_id"];
1323 $ilDB = $DIC->database();
1325 $query =
'SELECT obj_id FROM object_data WHERE type = ' .
$ilDB->quote(
1328 ) .
' AND title = ' .
$ilDB->quote(
'il_crs_non_member',
'text');
1331 return (
int) $row[
'obj_id'];
1342 if (empty($this->local_roles)) {
1343 $this->local_roles = array();
1344 $role_arr = $this->rbac_review->getRolesOfRoleFolder($this->
getRefId());
1346 foreach ($role_arr as $role_id) {
1347 if ($this->rbac_review->isAssignable($role_id, $this->getRefId())) {
1352 $role_name = $role_Obj->getTitle();
1354 $this->local_roles[$role_name] = $role_Obj->getId();
1371 if (strlen($a_crs_id) > 0) {
1372 $crs_id = $a_crs_id;
1377 $role_arr = $this->rbac_review->getRolesOfRoleFolder($crs_id);
1379 $arr_crsDefaultRoles = [];
1380 foreach ($role_arr as $role_id) {
1381 $role_Obj = &$this->
ilias->obj_factory->getInstanceByObjId($role_id);
1383 $crs_Member =
"il_crs_member_" . $crs_id;
1384 $crs_Admin =
"il_crs_admin_" . $crs_id;
1385 $crs_Tutor =
"il_crs_tutor_" . $crs_id;
1387 if (strcmp($role_Obj->getTitle(), $crs_Member) == 0) {
1388 $arr_crsDefaultRoles[
"crs_member_role"] = $role_Obj->getId();
1391 if (strcmp($role_Obj->getTitle(), $crs_Admin) == 0) {
1392 $arr_crsDefaultRoles[
"crs_admin_role"] = $role_Obj->getId();
1395 if (strcmp($role_Obj->getTitle(), $crs_Tutor) == 0) {
1396 $arr_crsDefaultRoles[
"crs_tutor_role"] = $role_Obj->getId();
1400 return $arr_crsDefaultRoles;
1408 return $this->rbac_review->getRolesOfRoleFolder($this->
getRefId(),
false);
1413 $query =
"DELETE FROM crs_settings " .
1414 "WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer') .
" ";
1415 $this->db->manipulate($query);
1421 foreach ($local_roles as $role_id) {
1423 if (substr(
$title, 0, 8) ==
'il_crs_m') {
1433 foreach ($local_roles as $role_id) {
1435 if (!strcmp($tmp_role->getTitle(),
"il_crs_tutor_" . $this->
getRefId())) {
1446 foreach ($local_roles as $role_id) {
1448 if (!strcmp($tmp_role->getTitle(),
"il_crs_admin_" . $this->
getRefId())) {
1465 switch ($a_element) {
1469 $ecs->handleContentUpdate();
1491 $app->setSubtitle(
'crs_cal_activation_start');
1499 $app->setSubtitle(
'crs_cal_activation_end');
1508 $app->setSubtitle(
'crs_cal_reg_start');
1516 $app->setSubtitle(
'crs_cal_reg_end');
1525 $app->setSubtitle(
'crs_cal_start');
1534 $app->setSubtitle(
'crs_cal_end');
1545 foreach ($active as $null => $item) {
1549 $app->setContextInfo($item[
'ref_id']);
1550 $app->setTitle($item[
'title']);
1551 $app->setSubtitle(
'cal_crs_timing_start');
1554 $app->setFullday(
true);
1558 $app->setContextInfo($item[
'ref_id']);
1559 $app->setTitle($item[
'title']);
1560 $app->setSubtitle(
'cal_crs_timing_end');
1563 $app->setFullday(
true);
1585 $ilDB = $DIC->database();
1587 $query =
"SELECT obj_id FROM crs_settings " .
1588 "WHERE reg_ac_enabled = " .
$ilDB->quote(1,
'integer') .
" " .
1589 "AND reg_ac = " .
$ilDB->quote($a_code,
'text');
1594 $obj_ids[] = (
int) $row->obj_id;
1603 public function register(
1606 bool $a_force_registration = false
1612 if (!$a_force_registration) {
1616 "Can't register to course, course is offline.",
1623 "Can't register to course, course is not activated.",
1631 'Cant registrate to course ' . $this->
getId() .
1632 ', course subscription is deactivated.',
1642 'Cant registrate to course ' . $this->
getId() .
1643 ', course is out of registration time.',
1654 $waiting_list->addToList($a_user_id);
1655 $this->
lng->loadLanguageModule(
"crs");
1657 $this->
lng->txt(
'crs_added_to_list'),
1658 $waiting_list->getPosition($a_user_id)
1661 $participants->sendNotification(
1700 $this->auto_notification = $value;
1708 $a_value = $a_value;
1711 if ($a_value == self::STATUS_DETERMINATION_LP) {
1713 $a_value = self::STATUS_DETERMINATION_MANUAL;
1717 $this->status_dt = $a_value;
1751 $this->
getMembersObject()->updatePassed($a_member_id, $has_completed,
false,
true);
1760 return parent::getOrderType();
1771 $this->course_logger->debug(
'Waiting list or auto fill disabled.');
1778 $this->course_logger->debug(
'Max members: ' . $max);
1779 $this->course_logger->debug(
'Current members: ' . $now);
1788 foreach ($waiting_list->getUserIds() as
$user_id) {
1790 $this->course_logger->warning(
'Cannot create user instance for id: ' .
$user_id);
1794 $this->course_logger->warning(
'User is already assigned to course. uid: ' .
$user_id .
' course_id: ' . $this->
getRefId());
1799 $waiting_list->removeFromList(
$user_id);
1802 $this->course_logger->info(
'Assigned user from waiting list to course: ' . $this->
getTitle());
1810 public static function mayLeave(
int $a_course_id,
int $a_user_id = 0, &$a_date =
null): bool
1814 $ilUser = $DIC[
'ilUser'];
1815 $ilDB = $DIC[
'ilDB'];
1818 $a_user_id = $ilUser->getId();
1821 $set =
$ilDB->query(
"SELECT leave_end" .
1822 " FROM crs_settings" .
1823 " WHERE obj_id = " .
$ilDB->quote($a_course_id,
"integer"));
1824 $row =
$ilDB->fetchAssoc($set);
1825 if ($row && $row[
"leave_end"]) {
1827 $limit = date(
"Ymd", $row[
"leave_end"]);
1828 if ($limit < date(
"Ymd")) {
1847 $set =
$ilDB->query(
"SELECT obj_id, min_members" .
1848 " FROM crs_settings" .
1849 " WHERE min_members > " .
$ilDB->quote(0,
"integer") .
1850 " AND sub_mem_limit = " .
$ilDB->quote(1,
"integer") .
1851 " AND ((leave_end IS NOT NULL" .
1852 " AND leave_end < " .
$ilDB->quote($now,
"text") .
")" .
1853 " OR (leave_end IS NULL" .
1854 " AND sub_end IS NOT NULL" .
1855 " AND sub_end < " .
$ilDB->quote($now,
"text") .
"))" .
1857 while ($row =
$ilDB->fetchAssoc($set)) {
1866 $reci = $part->getNotificationRecipients();
1868 $missing = (
int) $row[
"min_members"] - $part->getCountMembers();
1870 $res[(
int) $row[
"obj_id"]] = array($missing, $reci);
const LP_STATUS_COMPLETED_NUM
getSubscriptionPassword()
static lookupTimingMode(int $a_obj_id)
string $contact_consultation
getSubscriptionMinMembers()
setSubscriptionLimitationType(int $a_type)
getSubscriptionMaxMembers()
const TYPE_ADMISSION_MEMBER
const ADDED_TO_WAITINGLIST
setSubscriptionStart(int $a_value)
const IL_CRS_VIEW_TIMING_ABSOLUTE
prepareAppointments(string $a_mode='create')
Prepare calendar appointments.
setLongitude(string $a_longitude)
setActivationEnd(int $a_value)
setAboStatus(bool $a_status)
const TYPE_WAITING_LIST_MEMBER
setActivationVisibility(bool $a_value)
appendMessage(string $a_message)
setContactResponsibility(string $a_value)
static getInstancesByParentId(int $a_parent_id, ?array $a_filter=null)
const IL_CRS_SUBSCRIPTION_DIRECT
static _deleteByContainer(int $a_container_id)
getActivationVisibility()
static lookupShowMembersEnabled(int $a_obj_id)
const IL_CRS_SUBSCRIPTION_DEACTIVATED
setCoursePeriod(?ilDateTime $start=null, ?ilDateTime $end=null)
bool $reg_access_code_enabled
static lookupCourseNonMemberTemplatesId()
static _isActivated(int $a_obj_id)
Is activated.
setNumberOfNextSessions(int $a_num)
static _getInstanceByObjId(int $a_obj_id, int $a_usr_id)
static _getAllReferences(int $id)
get all reference ids for object ID
isDeleted(int $a_node_id)
This is a wrapper for isSaved() with a more useful name.
enableRegistrationAccessCode(bool $a_status)
const int CAL_COURSE_TIMING_START
const TIMINGS_DEACTIVATED
setNumberOfPreviousSessions(int $a_num)
const int CAL_ACTIVATION_START
setSubscriptionMinMembers(int $a_value)
const REGISTRATION_INVALID_OFFLINE
setShowMembers(bool $a_status)
const OUT_OF_REGISTRATION_PERIOD
setParentRolePermissions(int $parent_ref_id)
This method is called before "initDefaultRoles".
Apointment templates are used for automatic generated apointments.
setTimingMode(int $a_mode)
isRegistrationAccessCodeEnabled()
setLocationZoom(int $a_locationzoom)
setActivationStart(int $a_value)
getStatusDetermination()
Get status determination mode.
setStatusDetermination(int $a_value)
Set status determination mode.
static createDefaultRole(string $a_title, string $a_description, string $a_tpl_name, int $a_ref_id)
string $subscription_password
static cloneDependencies(int $ref_id, int $target_id, int $copy_id)
const TYPE_NOTIFICATION_ADMINS
setOrderType(int $a_value)
__createDefaultSettings()
static _usingRegistrationCode()
static mayLeave(int $a_course_id, int $a_user_id=0, &$a_date=null)
setCancellationEnd(?ilDate $a_value=null)
static _deleteUser(int $a_usr_id)
handleAutoFill()
Handle course auto fill.
setEnableCourseMap(bool $a_enablemap)
static _lookupViewMode(int $a_id)
setSubscriptionMaxMembers(int $a_value)
static _lookupObjId(int $ref_id)
static is_email(string $a_email, ?ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
This preg-based function checks whether an e-mail address is formally valid.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static convertDateToUtcDBTimestamp(?\ilDateTime $date=null)
getCourseStartTimeIndication()
static _deleteUser(int $a_usr_id)
Delete user data.
checkLPStatusSync(int $a_member_id)
sync course status from lp as lp data is not deleted on course exit new members may already have lp c...
static getUserIdByLogin(string $a_login)
static _lookupSortMode(int $a_obj_id)
static _deleteAll(int $course_id)
setSyllabus(string $a_syllabus)
static _deleteByCourse(int $a_course_id)
static _enabledLearningProgress()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTutorialSupportBlockSettingValue()
const IL_CRS_SUBSCRIPTION_PASSWORD
cloneMetaData(ilObject $target_obj)
Copy meta data.
static _deleteAll(int $a_course_id)
const IL_CRS_SUBSCRIPTION_LIMITED
string $contact_responsibility
static _lookupTitle(int $obj_id)
static _getInstanceByObjId(int $a_obj_id)
setContactConsultation(string $a_value)
bool $activation_visibility
Interface for all objects that offer registration with access codes.
getNumberOfNextSessions()
setCourseStart(?ilDateTime $a_value=null)
cloneSettings(ilObject $new_obj)
setSubscriptionType(int $a_value)
enableSessionLimit(int $a_status)
enableSubscriptionMembershipLimitation(bool $a_status)
getContactResponsibility()
syncMembersStatusWithLP()
__getCrsNonMemberTemplateId()
setSubscriptionEnd(int $a_value)
const REGISTRATION_CODE_DISABLED
setContactEmail(string $a_value)
setImportantInformation(string $a_info)
static _getTranslation(string $a_role_title)
static getTimingsItems(int $container_ref_id)
Get (sub) item data for timings view (no session material, no side blocks)
int $subscription_max_members
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _clone(int $a_source_id, int $a_target_id)
setMailToMembersType(int $a_type)
int $subscription_limitation_type
getDefaultCourseRoles(string $a_crs_id="")
get default course roles, returns the defaultlike create roles il_crs_tutor, il_crs_admin and il_crs_...
ilCourseWaitingList $waiting_list_obj
Class ilObjForumAdministration.
membership registration exception
setTutorialSupportBlockSettingValue(int $value)
static _isOffline(int $obj_id)
const int STATUS_DETERMINATION_LP
setWaitingListAutoFill(bool $a_value)
setOfflineStatus(bool $status)
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status.
const int CAL_ACTIVATION_END
bool $auto_fill_from_waiting
getRegistrationAccessCode()
ilCourseParticipant $member_obj
getSubscriptionLimitationType()
static _cloneFiles(int $a_source_id, int $a_target_id)
static _getGroupings(int $a_course_id)
static _isActivated(int $a_obj_id, ?bool &$a_visible_flag=null, bool $a_mind_member_view=true)
static _deleteAllEntries(int $a_obj_id)
Delete all entries Normally called in case of object deletion.
getLocalCourseRoles($a_translate=false)
get ALL local roles of course, also those created and defined afterwards only fetch data once from da...
const IL_CRS_VIEW_OBJECTIVE
doMDUpdateListener(string $a_element)
const int STATUS_DETERMINATION_MANUAL
getAutoNotification()
Returns automatic notification status from $this->auto_notification.
bool $crs_start_time_indication
static _registrationEnabled(int $a_obj_id)
setSubscriptionPassword(string $a_value)
bool $course_start_time_indication
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
isSubscriptionMembershipLimited()
bool $subscription_membership_limitation
static _registrationEnabled(int $a_obj_id)
Registration enabled? Method is in Access class, since it is needed by Access/ListGUI.
setTargetGroup(?string $a_tg)
setContactName(string $a_cn)
setCourseEnd(?ilDateTime $a_value=null)
static generateCode()
Generate new registration key.
static getItem(int $ref_id)
ilCourseParticipants $members_obj
const IL_CRS_SUBSCRIPTION_UNLIMITED
const REGISTRATION_INVALID_AVAILABILITY
static lookupNumberOfMembers(int $a_ref_id)
Lookup number of members.
getActivationUnlimitedStatus()
enableWaitingList(bool $a_status)
static findCoursesWithNotEnoughMembers()
static addAdditionalSubItemInformation(array &$item)
Parse item data for list entries.
__construct(int $a_id=0, bool $a_call_by_reference=true)
initCourseMembersObject()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)
int $tutorial_support_block_setting_value
static deleteResultsForUser(int $a_user_id)
getNumberOfPreviousSessions()
getLongDescription()
get object long description (stored in object_description)
static _deleteUser(int $a_usr_id)
getSubscriptionUnlimitedStatus()
toggleCourseStartTimeIndication(bool $time_indication)
setRegistrationAccessCode(string $a_code)
static _lookupAboStatus(int $a_id)
static lookupTutorialBlockSettingEabled(int $a_obj_id)
static _getInstance(int $a_copy_id)
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
Clone course (no member data)
setShowMembersExport(bool $a_mem_export)
setContactPhone(string $a_value)
const int CAL_COURSE_TIMING_END
cloneAutoGeneratedRoles(ilObject $new_obj)
Clone automatic genrated roles (permissions and template permissions)
Class ilObjectActivation.
static cloneSettings(int $a_copy_id, int $a_container_id, int $a_new_container_id)
setMessage(string $a_message)
static lookupObjectsByCode(string $a_code)
cloneDependencies(int $target_id, int $copy_id)
getImportantInformation()
setLatitude(string $a_latitude)
addAdditionalSubItemInformation(array &$object)
Class ilECSCourseSettings.
const int CAL_COURSE_START
static _isSubscriptionNotificationEnabled(int $a_course_id)
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)
static checkForumsExistsInsert(int $ref_id, int $user_id)
setAutoNotification(bool $value)
Sets automatic notification status in $this->auto_notification, using given $status.