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;
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;
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;
473 $query =
"SELECT view_mode FROM crs_settings WHERE obj_id = " .
$ilDB->quote($a_id,
'integer') .
" ";
476 return $row->view_mode;
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) ||
654 throw new InvalidArgumentException(
'Different date types not supported.');
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"]) {
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"];
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);
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.',
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) {
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());
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'];
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);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static getInstancesByParentId(int $a_parent_id, ?array $a_filter=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Apointment templates are used for automatic generated apointments.
static convertDateToUtcDBTimestamp(?\ilDateTime $date=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupSortMode(int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setOrderType(int $a_value)
static _getInstance(int $a_copy_id)
const IL_CRS_VIEW_OBJECTIVE
const IL_CRS_SUBSCRIPTION_DEACTIVATED
const IL_CRS_SUBSCRIPTION_PASSWORD
const IL_CRS_SUBSCRIPTION_LIMITED
const IL_CRS_VIEW_TIMING_ABSOLUTE
const IL_CRS_SUBSCRIPTION_UNLIMITED
const IL_CRS_SUBSCRIPTION_DIRECT
static _deleteByContainer(int $a_container_id)
static _clone(int $a_source_id, int $a_target_id)
static _deleteByCourse(int $a_course_id)
static _cloneFiles(int $a_source_id, int $a_target_id)
static _deleteUser(int $a_usr_id)
const TYPE_ADMISSION_MEMBER
const TYPE_NOTIFICATION_ADMINS
const TYPE_WAITING_LIST_MEMBER
static _deleteAll(int $course_id)
static _getInstanceByObjId(int $a_obj_id, int $a_usr_id)
static _getInstanceByObjId(int $a_obj_id)
@classDescription Date and time handling
Class ilECSCourseSettings.
static checkForumsExistsInsert(int $ref_id, int $user_id)
static cloneSettings(int $a_copy_id, int $a_container_id, int $a_new_container_id)
static deleteResultsForUser(int $a_user_id)
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)
const LP_STATUS_COMPLETED_NUM
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status.
Component logger with individual log levels by component id.
static generateCode()
Generate new registration key.
membership registration exception
const ADDED_TO_WAITINGLIST
const REGISTRATION_CODE_DISABLED
const REGISTRATION_INVALID_OFFLINE
const REGISTRATION_INVALID_AVAILABILITY
const OUT_OF_REGISTRATION_PERIOD
static _registrationEnabled(int $a_obj_id)
static _usingRegistrationCode()
static _isActivated(int $a_obj_id, ?bool &$a_visible_flag=null, bool $a_mind_member_view=true)
static _isOffline(int $obj_id)
Type-specific implementation of general status, has to be overwritten if object type does not support...
static _deleteAll(int $a_course_id)
static _getGroupings(int $a_course_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static lookupCourseNonMemberTemplatesId()
static _lookupAboStatus(int $a_id)
getImportantInformation()
ilCourseWaitingList $waiting_list_obj
setSubscriptionMaxMembers(int $a_value)
getNumberOfNextSessions()
setLongitude(string $a_longitude)
static _deleteUser(int $a_usr_id)
static _lookupViewMode(int $a_id)
__construct(int $a_id=0, bool $a_call_by_reference=true)
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...
bool $reg_access_code_enabled
getSubscriptionPassword()
prepareAppointments(string $a_mode='create')
Prepare calendar appointments.
ilCourseParticipants $members_obj
enableSubscriptionMembershipLimitation(bool $a_status)
setTargetGroup(?string $a_tg)
setSubscriptionLimitationType(int $a_type)
setNumberOfPreviousSessions(int $a_num)
getTutorialSupportBlockSettingValue()
bool $auto_fill_from_waiting
setContactEmail(string $a_value)
static lookupObjectsByCode(string $a_code)
setCoursePeriod(?ilDateTime $start=null, ?ilDateTime $end=null)
appendMessage(string $a_message)
static lookupShowMembersEnabled(int $a_obj_id)
setContactPhone(string $a_value)
setParentRolePermissions(int $parent_ref_id)
This method is called before "initDefaultRoles".
bool $activation_visibility
static lookupTutorialBlockSettingEabled(int $a_obj_id)
setImportantInformation(string $a_info)
getDefaultCourseRoles(string $a_crs_id="")
get default course roles, returns the defaultlike create roles il_crs_tutor, il_crs_admin and il_crs_...
setShowMembersExport(bool $a_mem_export)
getActivationVisibility()
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
Clone course (no member data)
handleAutoFill()
Handle course auto fill.
isSubscriptionMembershipLimited()
enableSessionLimit(int $a_status)
initDefaultRoles()
init default roles settings Purpose of this function is to create a local role folder and local roles...
cloneSettings(ilObject $new_obj)
const int STATUS_DETERMINATION_MANUAL
setSubscriptionEnd(int $a_value)
setActivationVisibility(bool $a_value)
cloneDependencies(int $target_id, int $copy_id)
@inheritDoc
getLocalCourseRoles($a_translate=false)
get ALL local roles of course, also those created and defined afterwards only fetch data once from da...
setLatitude(string $a_latitude)
int $subscription_max_members
enableRegistrationAccessCode(bool $a_status)
__getCrsNonMemberTemplateId()
bool $subscription_membership_limitation
static _isSubscriptionNotificationEnabled(int $a_course_id)
getSubscriptionUnlimitedStatus()
setCourseStart(?ilDateTime $a_value=null)
static lookupTimingMode(int $a_obj_id)
setTutorialSupportBlockSettingValue(int $value)
getSubscriptionLimitationType()
setTimingMode(int $a_mode)
setContactConsultation(string $a_value)
doMDUpdateListener(string $a_element)
__createDefaultSettings()
initCourseMembersObject()
static findCoursesWithNotEnoughMembers()
setSubscriptionPassword(string $a_value)
setContactName(string $a_cn)
setNumberOfNextSessions(int $a_num)
const int CAL_COURSE_TIMING_START
getSubscriptionMaxMembers()
getRegistrationAccessCode()
setMailToMembersType(int $a_type)
const int STATUS_DETERMINATION_LP
static _registrationEnabled(int $a_obj_id)
Registration enabled? Method is in Access class, since it is needed by Access/ListGUI.
string $contact_responsibility
syncMembersStatusWithLP()
toggleCourseStartTimeIndication(bool $time_indication)
int $subscription_limitation_type
addAdditionalSubItemInformation(array &$object)
Add additional information to sub item, e.g.
getContactResponsibility()
setCourseEnd(?ilDateTime $a_value=null)
setActivationEnd(int $a_value)
getCourseStartTimeIndication()
const int CAL_ACTIVATION_START
static _isActivated(int $a_obj_id)
Is activated.
setSubscriptionStart(int $a_value)
getActivationUnlimitedStatus()
setActivationStart(int $a_value)
setSubscriptionType(int $a_value)
setSyllabus(string $a_syllabus)
setMessage(string $a_message)
int $tutorial_support_block_setting_value
create()
note: title, description and type should be set when this function is called
bool $crs_start_time_indication
setAboStatus(bool $a_status)
getStatusDetermination()
Get status determination mode.
static mayLeave(int $a_course_id, int $a_user_id=0, &$a_date=null)
setShowMembers(bool $a_status)
setEnableCourseMap(bool $a_enablemap)
bool $course_start_time_indication
string $contact_consultation
ilCourseParticipant $member_obj
const int CAL_COURSE_TIMING_END
setStatusDetermination(int $a_value)
Set status determination mode.
setLocationZoom(int $a_locationzoom)
const int CAL_COURSE_START
setRegistrationAccessCode(string $a_code)
setCancellationEnd(?ilDate $a_value=null)
string $subscription_password
setWaitingListAutoFill(bool $a_value)
const int CAL_ACTIVATION_END
getSubscriptionMinMembers()
enableWaitingList(bool $a_status)
setContactResponsibility(string $a_value)
cloneAutoGeneratedRoles(ilObject $new_obj)
Clone automatic genrated roles (permissions and template permissions)
setSubscriptionMinMembers(int $a_value)
isRegistrationAccessCodeEnabled()
getAutoNotification()
Returns automatic notification status from $this->auto_notification.
setAutoNotification(bool $value)
Sets automatic notification status in $this->auto_notification, using given $status.
getNumberOfPreviousSessions()
static createDefaultRole(string $a_title, string $a_description, string $a_tpl_name, int $a_ref_id)
static _getTranslation(string $a_role_title)
static _enabledLearningProgress()
static getUserIdByLogin(string $a_login)
Class ilObjectActivation.
static cloneDependencies(int $ref_id, int $target_id, int $copy_id)
const TIMINGS_DEACTIVATED
static getTimingsItems(int $container_ref_id)
Get (sub) item data for timings view (no session material, no side blocks)
static getItem(int $ref_id)
static addAdditionalSubItemInformation(array &$item)
Parse item data for list entries.
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
Class ilObject Basic functions for all objects.
cloneMetaData(ilObject $target_obj)
Copy meta data.
static _getAllReferences(int $id)
get all reference ids for object ID
getLongDescription()
get object long description (stored in object_description)
setOfflineStatus(bool $status)
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
static lookupNumberOfMembers(int $a_ref_id)
Lookup number of members.
static _deleteAllEntries(int $a_obj_id)
Delete all entries Normally called in case of object deletion.
static _deleteUser(int $a_usr_id)
Delete user data.
isDeleted(int $a_node_id)
This is a wrapper for isSaved() with a more useful name.
static is_email(string $a_email, ?ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
This preg-based function checks whether an e-mail address is formally valid.
Interface for all objects that offer registration with access codes.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ilObjForumAdministration.