94 public function __construct(
int $a_id = 0,
bool $a_call_by_reference =
true)
101 $this->course_logger = $DIC->logger()->crs();
107 $query =
'SELECT show_members FROM crs_settings ' .
108 'WHERE obj_id = ' .
$GLOBALS[
'DIC'][
'ilDB']->quote($a_obj_id,
'integer');
111 return (
bool) $row->show_members;
123 $this->member_export = $a_mem_export;
133 $this->reg_access_code = $a_code;
143 $this->reg_access_code_enabled = $a_status;
153 $this->important = $a_info;
163 $this->syllabus = $a_syllabus;
173 $this->target_group = $a_tg;
183 $this->contact_name = $a_cn;
193 $this->contact_consultation = $a_value;
203 $this->contact_phone = $a_value;
213 $this->contact_email = $a_value;
223 $this->contact_responsibility = $a_value;
238 $this->activation_start = $a_value;
248 $this->activation_end = $a_value;
253 $this->activation_visibility = $a_value;
268 $this->subscription_limitation_type = $a_type;
283 $this->subscription_start = $a_value;
293 $this->subscription_end = $a_value;
303 $this->subscription_type = $a_value;
313 $this->subscription_password = $a_value;
328 $this->waiting_list = $a_status;
344 $this->session_limit = $a_status;
354 $this->subscription_membership_limitation = $a_status;
359 $this->session_prev = $a_num;
369 $this->session_next = $a_num;
389 $this->subscription_max_members = $a_value;
396 $ilDB = $DIC->database();
397 $query =
"SELECT * FROM crs_settings " .
398 "WHERE obj_id = " .
$ilDB->quote($a_course_id,
'integer') .
" " .
399 "AND sub_notify = 1";
401 return (
bool)
$res->numRows();
411 $this->view_mode = $a_mode;
423 $ilDB = $DIC[
'ilDB'];
425 $query =
'SELECT timing_mode FROM crs_settings ' .
426 'WHERE obj_id = ' .
$ilDB->quote($a_obj_id,
'integer');
430 return (
int) $row->timing_mode;
437 $this->timing_mode = $a_mode;
449 $ilDB = $DIC[
'ilDB'];
451 $query =
"SELECT view_mode FROM crs_settings WHERE obj_id = " .
$ilDB->quote($a_id,
'integer') .
" ";
454 return $row->view_mode;
463 $ilDB = $DIC[
'ilDB'];
465 $query =
"SELECT abo FROM crs_settings WHERE obj_id = " .
$ilDB->quote($a_id,
'integer') .
" ";
475 $this->abo = $a_status;
485 $this->show_members = $a_status;
495 $this->mail_members = $a_type;
510 $this->message = $a_message;
516 $this->message .=
"<br /> ";
518 $this->message .= $a_message;
563 $ilAppEventHandler = $DIC[
'ilAppEventHandler'];
565 $id = parent::create($a_upload);
571 $this->app_event_handler->raise(
574 array(
'object' => $this,
575 'obj_id' => $this->
getId(),
585 $this->latitude = $a_latitude;
595 $this->longitude = $a_longitude;
605 $this->locationzoom = $a_locationzoom;
615 $this->enablemap = $a_enablemap;
631 ($start instanceof \
ilDate && !$end instanceof
ilDate) ||
632 ($end instanceof \ilDate && !$start instanceof ilDate)
637 if ($start instanceof \ilDate) {
648 $this->course_start_time_indication = $time_indication;
658 $this->crs_start = $a_value;
668 $this->crs_end = $a_value;
678 $this->leave_end = $a_value;
688 if ($a_value !== null) {
691 $this->min_members = $a_value;
701 $this->auto_fill_from_waiting = $a_value;
721 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
727 $new_obj->getMemberObject()->updateContact($this->
user->getId(), 1);
730 if ($cwo->isRootNode($this->getRefId())) {
738 $obj_settings->cloneSettings($new_obj->getId());
739 unset($obj_settings);
748 $DIC->filesystem()->web(),
751 $cloneAction->cloneCertificate($this, $new_obj);
754 $book_service->cloneSettings($this->
getId(), $new_obj->getId());
757 foreach ($badges as $badge) {
758 $badge->clone($new_obj->getId());
769 parent::cloneDependencies($a_target_id, $a_copy_id);
773 $start->cloneDependencies($a_target_id, $a_copy_id);
783 $crs_objective->ilClone($a_target_id, $a_copy_id);
787 $this->course_logger->info(
'Handling grouping id: ' . $grouping_id);
788 $grouping = new \ilObjCourseGrouping($grouping_id);
789 $grouping->cloneGrouping($a_target_id, $a_copy_id);
800 $new_admin = $new_obj->getDefaultAdminRole();
802 if (!$admin || !$new_admin || !$this->
getRefId() || !$new_obj->
getRefId()) {
803 $this->course_logger->debug(
'Error cloning auto generated role: il_crs_admin');
805 $this->rbac_admin->copyRolePermissions($admin, $this->
getRefId(), $new_obj->
getRefId(), $new_admin,
true);
806 $this->course_logger->debug(
'Finished copying of role crs_admin.');
809 $new_tutor = $new_obj->getDefaultTutorRole();
810 if (!$tutor || !$new_tutor) {
811 $this->course_logger->info(
'Error cloning auto generated role: il_crs_tutor');
813 $this->rbac_admin->copyRolePermissions($tutor, $this->
getRefId(), $new_obj->
getRefId(), $new_tutor,
true);
814 $this->course_logger->info(
'Finished copying of role crs_tutor.');
817 $new_member = $new_obj->getDefaultMemberRole();
818 if (!$member || !$new_member) {
819 $this->course_logger->debug(
'Error cloning auto generated role: il_crs_member');
821 $this->rbac_admin->copyRolePermissions($member, $this->
getRefId(), $new_obj->
getRefId(), $new_member,
true);
822 $this->course_logger->debug(
'Finished copying of role crs_member.');
865 foreach ($emails as $email) {
866 $email = trim($email);
868 $this->error->appendMessage($this->
lng->txt(
'contact_email_not_valid') .
" '" . $email .
"'");
887 public function delete():
bool 890 if (!parent::delete()) {
911 $this->app_event_handler->raise(
914 array(
'object' => $this,
915 'obj_id' => $this->
getId(),
935 $this->app_event_handler->raise(
938 array(
'object' => $this,
939 'obj_id' => $this->
getId(),
950 $query =
"SELECT * FROM crs_settings WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer') .
" ";
951 $res = $this->db->query($query);
953 if (!
$res->numRows()) {
957 $query =
"UPDATE crs_settings SET " .
958 "syllabus = " . $this->db->quote($this->
getSyllabus(),
'text') .
", " .
959 "contact_name = " . $this->db->quote($this->
getContactName(),
'text') .
", " .
961 "contact_phone = " . $this->db->quote($this->
getContactPhone(),
'text') .
", " .
962 "contact_email = " . $this->db->quote($this->
getContactEmail(),
'text') .
", " .
964 "activation_type = " . $this->db->quote(!$this->
getOfflineStatus(),
'integer') .
", " .
973 "view_mode = " . $this->db->quote($this->
getViewMode(),
'integer') .
", " .
974 'timing_mode = ' . $this->db->quote($this->
getTimingMode(),
'integer') .
', ' .
975 "abo = " . $this->db->quote($this->
getAboStatus(),
'integer') .
", " .
979 "show_members = " . $this->db->quote($this->
getShowMembers(),
'integer') .
", " .
981 "latitude = " . $this->db->quote($this->
getLatitude(),
'text') .
", " .
982 "longitude = " . $this->db->quote($this->
getLongitude(),
'text') .
", " .
983 "location_zoom = " . $this->db->quote($this->
getLocationZoom(),
'integer') .
", " .
984 "enable_course_map = " . $this->db->quote((
int) $this->
getEnableCourseMap(),
'integer') .
", " .
990 'auto_notification = ' . $this->db->quote((
int) $this->
getAutoNotification(),
'integer') .
', ' .
993 'period_start = ' . $this->db->quote(
997 'period_end = ' . $this->db->quote(
1001 'period_time_indication = ' . $this->db->quote(
1006 'leave_end = ' . $this->db->quote(
1011 "WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer') .
"";
1013 $res = $this->db->manipulate($query);
1016 if ($this->ref_id ??
false) {
1028 $item->update($this->ref_id);
1070 $new_obj->setCoursePeriod(
1091 $query =
"INSERT INTO crs_settings (obj_id,syllabus,contact_name,contact_responsibility," .
1092 "contact_phone,contact_email,contact_consultation," .
1093 "sub_limitation_type,sub_start,sub_end,sub_type,sub_password,sub_mem_limit," .
1094 "sub_max_members,sub_notify,view_mode,timing_mode,abo," .
1095 "latitude,longitude,location_zoom,enable_course_map,waiting_list,show_members,show_members_export, " .
1096 "session_limit,session_prev,session_next, reg_ac_enabled, reg_ac, auto_notification, status_dt,mail_members_type) " .
1098 $this->db->quote($this->
getId(),
'integer') .
", " .
1099 $this->db->quote($this->
getSyllabus(),
'text') .
", " .
1115 $this->db->quote($this->
getAboStatus(),
'integer') .
", " .
1116 $this->db->quote($this->
getLatitude(),
'text') .
", " .
1117 $this->db->quote($this->
getLongitude(),
'text') .
", " .
1120 #
"objective_view = '0', ".
1134 $res = $this->db->manipulate($query);
1144 $query =
"SELECT * FROM crs_settings WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer');
1145 $res = $this->db->query($query);
1186 if ($row->period_time_indication) {
1191 } elseif (!is_null($row->period_start) && !is_null($row->period_end)) {
1204 if ($this->ref_id ??
false) {
1206 switch ($activation[
"timing_type"]) {
1219 $this->waiting_list_obj =
new ilCourseWaitingList($this->
getId());
1254 'il_crs_admin_' . $this->
getRefId(),
1255 "Admin of crs obj_no." . $this->
getId(),
1260 'il_crs_tutor_' . $this->
getRefId(),
1261 "Tutor of crs obj_no." . $this->
getId(),
1266 'il_crs_member_' . $this->
getRefId(),
1267 "Member of crs obj_no." . $this->
getId(),
1282 $parent_roles = $this->rbac_review->getParentRoleIds($a_parent_ref);
1283 foreach ($parent_roles as $parent_role) {
1284 $this->rbac_admin->initIntersectionPermissions(
1286 $parent_role[
'obj_id'],
1287 $parent_role[
'parent'],
1297 $q =
"SELECT obj_id FROM object_data WHERE type='rolt' AND title='il_crs_non_member'";
1300 return (
int) $row[
"obj_id"];
1307 $ilDB = $DIC->database();
1309 $query =
'SELECT obj_id FROM object_data WHERE type = ' .
$ilDB->quote(
1312 ) .
' AND title = ' .
$ilDB->quote(
'il_crs_non_member',
'text');
1315 return (
int) $row[
'obj_id'];
1326 if (empty($this->local_roles)) {
1327 $this->local_roles = array();
1328 $role_arr = $this->rbac_review->getRolesOfRoleFolder($this->
getRefId());
1330 foreach ($role_arr as $role_id) {
1331 if ($this->rbac_review->isAssignable($role_id, $this->getRefId()) ==
true) {
1336 $role_name = $role_Obj->getTitle();
1338 $this->local_roles[$role_name] = $role_Obj->getId();
1355 if (strlen($a_crs_id) > 0) {
1356 $crs_id = $a_crs_id;
1361 $role_arr = $this->rbac_review->getRolesOfRoleFolder($crs_id);
1363 $arr_crsDefaultRoles = [];
1364 foreach ($role_arr as $role_id) {
1365 $role_Obj = &$this->
ilias->obj_factory->getInstanceByObjId($role_id);
1367 $crs_Member =
"il_crs_member_" . $crs_id;
1368 $crs_Admin =
"il_crs_admin_" . $crs_id;
1369 $crs_Tutor =
"il_crs_tutor_" . $crs_id;
1371 if (strcmp($role_Obj->getTitle(), $crs_Member) == 0) {
1372 $arr_crsDefaultRoles[
"crs_member_role"] = $role_Obj->getId();
1375 if (strcmp($role_Obj->getTitle(), $crs_Admin) == 0) {
1376 $arr_crsDefaultRoles[
"crs_admin_role"] = $role_Obj->getId();
1379 if (strcmp($role_Obj->getTitle(), $crs_Tutor) == 0) {
1380 $arr_crsDefaultRoles[
"crs_tutor_role"] = $role_Obj->getId();
1384 return $arr_crsDefaultRoles;
1392 return $this->rbac_review->getRolesOfRoleFolder($this->
getRefId(),
false);
1397 $query =
"DELETE FROM crs_settings " .
1398 "WHERE obj_id = " . $this->db->quote($this->
getId(),
'integer') .
" ";
1399 $this->db->manipulate($query);
1405 foreach ($local_roles as $role_id) {
1407 if (substr(
$title, 0, 8) ==
'il_crs_m') {
1417 foreach ($local_roles as $role_id) {
1419 if (!strcmp($tmp_role->getTitle(),
"il_crs_tutor_" . $this->
getRefId())) {
1430 foreach ($local_roles as $role_id) {
1432 if (!strcmp($tmp_role->getTitle(),
"il_crs_admin_" . $this->
getRefId())) {
1449 switch ($a_element) {
1453 $ecs->handleContentUpdate();
1475 $app->setSubtitle(
'crs_cal_activation_start');
1483 $app->setSubtitle(
'crs_cal_activation_end');
1492 $app->setSubtitle(
'crs_cal_reg_start');
1500 $app->setSubtitle(
'crs_cal_reg_end');
1509 $app->setSubtitle(
'crs_cal_start');
1518 $app->setSubtitle(
'crs_cal_end');
1529 foreach ($active as $null => $item) {
1533 $app->setContextInfo($item[
'ref_id']);
1534 $app->setTitle($item[
'title']);
1535 $app->setSubtitle(
'cal_crs_timing_start');
1538 $app->setFullday(
true);
1542 $app->setContextInfo($item[
'ref_id']);
1543 $app->setTitle($item[
'title']);
1544 $app->setSubtitle(
'cal_crs_timing_end');
1547 $app->setFullday(
true);
1569 $ilDB = $DIC->database();
1571 $query =
"SELECT obj_id FROM crs_settings " .
1572 "WHERE reg_ac_enabled = " .
$ilDB->quote(1,
'integer') .
" " .
1573 "AND reg_ac = " .
$ilDB->quote($a_code,
'text');
1578 $obj_ids[] = (
int) $row->obj_id;
1587 public function register(
1590 bool $a_force_registration = false
1596 if (!$a_force_registration) {
1600 "Can't register to course, course is offline.",
1607 "Can't register to course, course is not activated.",
1615 'Cant registrate to course ' . $this->
getId() .
1616 ', course subscription is deactivated.',
1626 'Cant registrate to course ' . $this->
getId() .
1627 ', course is out of registration time.',
1638 $waiting_list->addToList($a_user_id);
1639 $this->
lng->loadLanguageModule(
"crs");
1641 $this->
lng->txt(
'crs_added_to_list'),
1642 $waiting_list->getPosition($a_user_id)
1645 $participants->sendNotification(
1684 $this->auto_notification = $value;
1692 $a_value = $a_value;
1695 if ($a_value == self::STATUS_DETERMINATION_LP) {
1697 $a_value = self::STATUS_DETERMINATION_MANUAL;
1701 $this->status_dt = $a_value;
1735 $this->
getMembersObject()->updatePassed($a_member_id, $has_completed,
false,
true);
1744 return parent::getOrderType();
1755 $this->course_logger->debug(
'Waiting list or auto fill disabled.');
1762 $this->course_logger->debug(
'Max members: ' . $max);
1763 $this->course_logger->debug(
'Current members: ' . $now);
1772 foreach ($waiting_list->getUserIds() as $user_id) {
1774 $this->course_logger->warning(
'Cannot create user instance for id: ' . $user_id);
1778 $this->course_logger->warning(
'User is already assigned to course. uid: ' . $user_id .
' course_id: ' . $this->
getRefId());
1783 $waiting_list->removeFromList($user_id);
1786 $this->course_logger->info(
'Assigned user from waiting list to course: ' . $this->
getTitle());
1794 public static function mayLeave(
int $a_course_id,
int $a_user_id = 0, &$a_date = null): bool
1798 $ilUser = $DIC[
'ilUser'];
1799 $ilDB = $DIC[
'ilDB'];
1802 $a_user_id = $ilUser->getId();
1805 $set =
$ilDB->query(
"SELECT leave_end" .
1806 " FROM crs_settings" .
1807 " WHERE obj_id = " .
$ilDB->quote($a_course_id,
"integer"));
1808 $row =
$ilDB->fetchAssoc($set);
1809 if ($row && $row[
"leave_end"]) {
1811 $limit = date(
"Ymd", $row[
"leave_end"]);
1812 if ($limit < date(
"Ymd")) {
1831 $set =
$ilDB->query(
"SELECT obj_id, min_members" .
1832 " FROM crs_settings" .
1833 " WHERE min_members > " .
$ilDB->quote(0,
"integer") .
1834 " AND sub_mem_limit = " .
$ilDB->quote(1,
"integer") .
1835 " AND ((leave_end IS NOT NULL" .
1836 " AND leave_end < " .
$ilDB->quote($now,
"text") .
")" .
1837 " OR (leave_end IS NULL" .
1838 " AND sub_end IS NOT NULL" .
1839 " AND sub_end < " .
$ilDB->quote($now,
"text") .
"))" .
1841 while ($row =
$ilDB->fetchAssoc($set)) {
1850 $reci = $part->getNotificationRecipients();
1852 $missing = (
int) $row[
"min_members"] - $part->getCountMembers();
1854 $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)
static convertDateToUtcDBTimestamp(\ilDateTime $date=null)
setAboStatus(bool $a_status)
static is_email(string $a_email, ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
This preg-based function checks whether an e-mail address is formally valid.
const TYPE_WAITING_LIST_MEMBER
setActivationVisibility(bool $a_value)
appendMessage(string $a_message)
setContactResponsibility(string $a_value)
const IL_CRS_SUBSCRIPTION_DIRECT
cloneObject(int $a_target_id, int $a_copy_id=0, bool $a_omit_tree=false)
Clone course (no member data)
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isDeleted(int $a_node_id)
This is a wrapper for isSaved() with a more useful name.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
enableRegistrationAccessCode(bool $a_status)
const TIMINGS_DEACTIVATED
setNumberOfPreviousSessions(int $a_num)
setSubscriptionMinMembers(int $a_value)
const REGISTRATION_INVALID_OFFLINE
setShowMembers(bool $a_status)
const OUT_OF_REGISTRATION_PERIOD
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
cloneDependencies(int $a_target_id, int $a_copy_id)
static cloneDependencies(int $ref_id, int $target_id, int $copy_id)
const STATUS_DETERMINATION_LP
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)
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...
const CAL_ACTIVATION_START
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
bool $activation_visibility
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getNumberOfNextSessions()
setCourseStart(?ilDateTime $a_value=null)
cloneSettings(ilObject $new_obj)
setSubscriptionType(int $a_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
static getInstancesByParentId(int $a_parent_id, array $a_filter=null)
setMailToMembersType(int $a_type)
int $subscription_limitation_type
const CAL_COURSE_TIMING_END
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
header include for all ilias files.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _isOffline(int $obj_id)
setWaitingListAutoFill(bool $a_value)
setOfflineStatus(bool $status)
const STATUS_DETERMINATION_MANUAL
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status.
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)
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 CAL_COURSE_TIMING_START
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()
static deleteResultsForUser(int $a_user_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
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 _getInstance(int $a_copy_id)
setShowMembersExport(bool $a_mem_export)
setContactPhone(string $a_value)
setParentRolePermissions(int $a_parent_ref)
This method is called before "initDefaultRoles".
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)
getImportantInformation()
setLatitude(string $a_latitude)
addAdditionalSubItemInformation(array &$object)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.