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())
37 $this->substitutions_enabled =
true;
41 include_once(
'Modules/Course/classes/class.ilObjCourseAccess.php');
53 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
55 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
73 $props = parent::getProperties();
76 include_once
'Modules/Course/classes/class.ilObjCourseAccess.php';
79 $showRegistrationInfo =
false;
80 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
81 "value" => $lng->txt(
"offline"));
85 include_once
'Modules/Course/classes/class.ilCourseParticipant.php';
87 if($members->isBlocked($ilUser->getId())
and $members->isAssigned($ilUser->getId()))
89 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"member_status"),
90 "value" => $lng->txt(
"crs_status_blocked"));
94 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
97 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"member_status"),
98 "value" => $lng->txt(
"crs_status_pending"));
101 include_once
'./Modules/Course/classes/class.ilObjCourseAccess.php';
103 if(
$info[
'reg_info_list_prop'])
108 'property' =>
$info[
'reg_info_list_prop'][
'property'],
109 'value' =>
$info[
'reg_info_list_prop'][
'value']
112 if(
$info[
'reg_info_list_prop_limit'])
118 'property' =>
$info[
'reg_info_list_prop_limit'][
'property'],
119 'propertyNameVisible' => strlen(
$info[
'reg_info_list_prop_limit'][
'property']) ?
true :
false,
120 'value' =>
$info[
'reg_info_list_prop_limit'][
'value']
125 include_once
'./Modules/Course/classes/class.ilCourseWaitingList.php';
130 "property" => $lng->txt(
'member_status'),
131 "value" => $lng->txt(
'on_waiting_list')
142 'property' => $info[
'property'],
143 'value' => $info[
'value']
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')
182 parent::checkCommandAccess(
'read', $a_cmd, $a_ref_id,
$a_type, $a_obj_id) ||
183 parent::checkCommandAccess(
'join', $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
185 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