5 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
31 $this->static_link_enabled =
true;
32 $this->delete_enabled =
true;
33 $this->cut_enabled =
true;
34 $this->copy_enabled =
true;
35 $this->subscribe_enabled =
true;
36 $this->link_enabled =
false;
37 $this->payment_enabled =
true;
38 $this->info_screen_enabled =
true;
40 $this->gui_class_name =
"ilobjcoursegui";
42 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
44 if($this->substitutions->isActive())
46 $this->substitutions_enabled =
true;
50 include_once(
'Modules/Course/classes/class.ilObjCourseAccess.php');
62 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
87 include_once
'Modules/Course/classes/class.ilObjCourseAccess.php';
90 $showRegistrationInfo =
false;
91 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
92 "value" => $lng->txt(
"offline"));
96 include_once
'Modules/Course/classes/class.ilCourseParticipant.php';
98 if($members->isBlocked($ilUser->getId()) and $members->isAssigned($ilUser->getId()))
100 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"member_status"),
101 "value" => $lng->txt(
"crs_status_blocked"));
105 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
108 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"member_status"),
109 "value" => $lng->txt(
"crs_status_pending"));
112 include_once
'./Modules/Course/classes/class.ilObjCourseAccess.php';
114 if($info[
'reg_info_list_prop'])
119 'property' => $info[
'reg_info_list_prop'][
'property'],
120 'value' => $info[
'reg_info_list_prop'][
'value']
123 if($info[
'reg_info_list_prop_limit'])
129 'property' => $info[
'reg_info_list_prop_limit'][
'property'],
130 'propertyNameVisible' => strlen($info[
'reg_info_list_prop_limit'][
'property']) ?
true :
false,
131 'value' => $info[
'reg_info_list_prop_limit'][
'value']
137 include_once
'./Modules/Course/classes/class.ilCourseWaitingList.php';
142 "property" => $lng->txt(
'member_status'),
143 "value" => $lng->txt(
'on_waiting_list')
148 include_once
"./Modules/Course/classes/class.ilCourseCertificateAdapter.php";
151 $lng->loadLanguageModule(
'certificate');
152 $cmd_link =
"ilias.php?baseClass=ilRepositoryGUI&ref_id=".$this->ref_id.
153 "&cmd=deliverCertificate";
154 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"passed"),
155 "value" =>
'<a href="' . $cmd_link .
'">' . $lng->txt(
"download_certificate") .
'</a>');
174 if($a_cmd !=
'view' and $a_cmd !=
'leave' and $a_cmd !=
'join')
179 if($a_permission ==
'crs_linked')