5 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
23 $this->static_link_enabled =
true;
24 $this->delete_enabled =
true;
25 $this->cut_enabled =
true;
26 $this->copy_enabled =
true;
27 $this->subscribe_enabled =
true;
28 $this->link_enabled =
false;
29 $this->info_screen_enabled =
true;
31 $this->gui_class_name =
"ilobjcoursegui";
33 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
35 if ($this->substitutions->isActive()) {
36 $this->substitutions_enabled =
true;
40 include_once(
'Modules/Course/classes/class.ilObjCourseAccess.php');
52 public function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
54 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
72 $props = parent::getProperties();
75 include_once
'Modules/Course/classes/class.ilObjCourseAccess.php';
77 $showRegistrationInfo =
false;
78 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
79 "value" => $lng->txt(
"offline"));
83 include_once
'Modules/Course/classes/class.ilCourseParticipant.php';
85 if ($members->isBlocked($ilUser->getId()) and $members->isAssigned($ilUser->getId())) {
86 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"member_status"),
87 "value" => $lng->txt(
"crs_status_blocked"));
91 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
93 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"member_status"),
94 "value" => $lng->txt(
"crs_status_pending"));
97 include_once
'./Modules/Course/classes/class.ilObjCourseAccess.php';
99 if (
$info[
'reg_info_list_prop']) {
103 'property' =>
$info[
'reg_info_list_prop'][
'property'],
104 'value' =>
$info[
'reg_info_list_prop'][
'value']
107 if (
$info[
'reg_info_list_prop_limit']) {
111 'property' =>
$info[
'reg_info_list_prop_limit'][
'property'],
112 'propertyNameVisible' => strlen(
$info[
'reg_info_list_prop_limit'][
'property']) ?
true :
false,
113 'value' =>
$info[
'reg_info_list_prop_limit'][
'value']
118 include_once
'./Modules/Course/classes/class.ilCourseWaitingList.php';
122 "property" => $lng->txt(
'member_status'),
123 "value" => $lng->txt(
'on_waiting_list')
129 if (is_array($info)) {
133 'property' => $info[
'property'],
134 'value' => $info[
'value']
139 include_once
"./Modules/Course/classes/class.ilCourseCertificateAdapter.php";
141 $lng->loadLanguageModule(
'certificate');
142 $cmd_link =
"ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->ref_id .
143 "&cmd=deliverCertificate";
144 $props[] =
array(
"alert" =>
false,
"property" => $lng->txt(
"passed"),
145 "value" =>
'<a href="' . $cmd_link .
'">' . $lng->txt(
"download_certificate") .
'</a>');
164 if ($a_cmd !=
'view' and $a_cmd !=
'leave' and $a_cmd !=
'join') {
168 if ($a_permission ==
'crs_linked') {
170 parent::checkCommandAccess(
'read', $a_cmd, $a_ref_id,
$a_type, $a_obj_id) ||
171 parent::checkCommandAccess(
'join', $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
173 return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
static lookupPeriodInfo($a_obj_id)
Lookup course period info.
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
Workaround for course titles (linked if join or read permission is granted)
static _isSubscriber($a_obj_id, $a_usr_id)
check if user is subscriber
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
getProperties()
Get item properties.
static _isOffline($a_obj_id)
Type-specific implementation of general status.
Class ilObjCourseListGUI.
static _hasUserCertificate($a_usr_id, $a_obj_id)
Check if user has certificate for course.
static lookupRegistrationInfo($a_obj_id)
Lookup registration info ilDB $ilDB ilObjUser $ilUser ilLanguage $lng.
static _checkAllConditionsOfTarget($a_target_ref_id, $a_target_id, $a_target_type="", $a_usr_id=0)
checks wether all conditions of a target object are fulfilled
static _getInstanceByObjId($a_obj_id, $a_usr_id)
Get singleton instance.
static _isOnList($a_usr_id, $a_obj_id)
Check if a user on the waiting list.
Create styles array
The data for the language used.
static _getCommands()
get commands