3declare(strict_types=0);
34 public function init(): void
36 $this->static_link_enabled =
true;
37 $this->delete_enabled =
true;
38 $this->cut_enabled =
true;
39 $this->copy_enabled =
true;
40 $this->subscribe_enabled =
true;
41 $this->link_enabled =
false;
42 $this->info_screen_enabled =
true;
44 $this->gui_class_name =
"ilobjcoursegui";
47 if ($this->substitutions->isActive()) {
48 $this->substitutions_enabled =
true;
70 if (
null === $this->certificatePreloader) {
74 return $this->certificatePreloader;
84 $props = parent::getProperties();
91 $showRegistrationInfo =
false;
94 "property" => $this->
lng->txt(
"status"),
95 "value" => $this->lng->txt(
"offline")
101 if ($members->isBlocked() && $members->isAssigned()) {
102 $props[] = array(
"alert" =>
true,
103 "property" => $this->
lng->txt(
"member_status"),
104 "value" => $this->lng->txt(
"crs_status_blocked")
110 $props[] = array(
"alert" =>
true,
111 "property" => $this->
lng->txt(
"member_status"),
112 "value" => $this->lng->txt(
"crs_status_pending")
117 if (isset($info[
'reg_info_list_prop'])) {
121 'property' => $info[
'reg_info_list_prop'][
'property'],
122 'value' => $info[
'reg_info_list_prop'][
'value']
125 if (isset($info[
'reg_info_list_prop_limit'])) {
129 'property' => $info[
'reg_info_list_prop_limit'][
'property'],
130 'propertyNameVisible' => (
bool) strlen($info[
'reg_info_list_prop_limit'][
'property']),
131 'value' => $info[
'reg_info_list_prop_limit'][
'value']
139 "property" => $this->
lng->txt(
'member_status'),
140 "value" => $this->lng->txt(
'on_waiting_list')
146 if (is_array($info)) {
150 'property' => $info[
'property'] ??
"",
151 'value' => $info[
'value'] ??
""
156 $hasCertificate = $this->getCertificatePreloader()->isPreloaded($this->
user->getId(), $this->obj_id);
157 if ($hasCertificate) {
158 $this->
lng->loadLanguageModule(
'certificate');
159 $cmd_link =
"ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->ref_id .
"&cmd=deliverCertificate";
162 'property' => $this->
lng->txt(
'certificate'),
163 'value' => $DIC->ui()->renderer()->render(
164 $DIC->ui()->factory()->link()->standard($this->lng->txt(
'download_certificate'), $cmd_link)
175 return $book_info->appendProperties($this->obj_id, $props);
189 if ($cmd !=
'view' && $cmd !=
'leave' && $cmd !=
'join' && $cmd !==
'leaveWaitList') {
193 if ($permission ==
'crs_linked') {
195 parent::checkCommandAccess(
'read', $cmd,
$ref_id,
$type, $obj_id) ||
196 parent::checkCommandAccess(
'join', $cmd,
$ref_id,
$type, $obj_id);
198 return parent::checkCommandAccess($permission, $cmd,
$ref_id,
$type, $obj_id);
static _getInstanceByObjectType(string $a_type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstanceByObjId(int $a_obj_id, int $a_usr_id)
static lookupRegistrationInfo(int $a_obj_id)
static lookupPeriodInfo(int $a_obj_id)
static _getCommands()
@inheritDoc
static _isActivated(int $a_obj_id, ?bool &$a_visible_flag=null, bool $a_mind_member_view=true)
static getBookingInfoRepo()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getProperties()
@inheritDoc
checkCommandAccess(string $permission, string $cmd, int $ref_id, string $type, ?int $obj_id=null)
@inheritDoc
initItem(int $ref_id, int $obj_id, string $type, string $title="", string $description="")
initialize new item (is called by getItemHTML())
getCertificatePreloader()
ilCertificateObjectsForUserPreloader $certificatePreloader
static lookupOfflineStatus(int $obj_id)
Lookup offline status using objectDataCache.
static _isSubscriber(int $a_obj_id, int $a_usr_id)
static _isOnList(int $a_usr_id, int $a_obj_id)
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...