5 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
27 $this->static_link_enabled =
true;
28 $this->delete_enabled =
true;
29 $this->cut_enabled =
true;
30 $this->copy_enabled =
true;
31 $this->subscribe_enabled =
true;
32 $this->link_enabled =
false;
33 $this->info_screen_enabled =
true;
35 $this->gui_class_name =
"ilobjcoursegui";
38 if ($this->substitutions->isActive()) {
39 $this->substitutions_enabled =
true;
54 public function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
56 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
66 if (null === $this->certificatePreloader) {
89 $props = parent::getProperties();
96 $showRegistrationInfo =
false;
99 "property" =>
$lng->txt(
"status"),
100 "value" =>
$lng->txt(
"offline")
105 include_once
'Modules/Course/classes/class.ilCourseParticipant.php';
107 if ($members->isBlocked(
$ilUser->getId())
and $members->isAssigned(
$ilUser->getId())) {
108 $props[] = array(
"alert" =>
true,
"property" =>
$lng->txt(
"member_status"),
109 "value" =>
$lng->txt(
"crs_status_blocked"));
113 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
115 $props[] = array(
"alert" =>
true,
"property" =>
$lng->txt(
"member_status"),
116 "value" =>
$lng->txt(
"crs_status_pending"));
119 include_once
'./Modules/Course/classes/class.ilObjCourseAccess.php';
121 if (
$info[
'reg_info_list_prop']) {
125 'property' =>
$info[
'reg_info_list_prop'][
'property'],
126 'value' =>
$info[
'reg_info_list_prop'][
'value']
129 if (
$info[
'reg_info_list_prop_limit']) {
133 'property' =>
$info[
'reg_info_list_prop_limit'][
'property'],
134 'propertyNameVisible' => strlen(
$info[
'reg_info_list_prop_limit'][
'property']) ?
true :
false,
135 'value' =>
$info[
'reg_info_list_prop_limit'][
'value']
140 include_once
'./Modules/Course/classes/class.ilCourseWaitingList.php';
144 "property" =>
$lng->txt(
'member_status'),
145 "value" =>
$lng->txt(
'on_waiting_list')
151 if (is_array($info)) {
155 'property' => $info[
'property'],
156 'value' => $info[
'value']
162 if (
true === $hasCertificate) {
163 $lng->loadLanguageModule(
'certificate');
164 $cmd_link =
"ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->ref_id .
165 "&cmd=deliverCertificate";
166 $props[] = array(
"alert" =>
false,
167 "value" =>
'<a href="' . $cmd_link .
'">' .
$lng->txt(
"download_certificate") .
'</a>');
186 if ($a_cmd !=
'view' and $a_cmd !=
'leave' and $a_cmd !=
'join') {
190 if ($a_permission ==
'crs_linked') {
192 parent::checkCommandAccess(
'read', $a_cmd, $a_ref_id,
$a_type, $a_obj_id) ||
193 parent::checkCommandAccess(
'join', $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
195 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
getCertificatePreloader()
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
getProperties()
Get item properties.
static lookupOfflineStatus($a_obj_id)
Lookup offline status using objectDataCache.
Class ilObjCourseListGUI.
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.
static _isActivated($a_obj_id, &$a_visible_flag=null, $a_mind_member_view=true)
Is activated?
static _getCommands()
get commands