19declare(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();
88 if ($members->isBlocked() && $members->isAssigned()) {
89 $props[] = array(
"alert" =>
true,
90 "property" => $this->
lng->txt(
"member_status"),
91 "value" => $this->lng->txt(
"crs_status_blocked")
97 $props[] = array(
"alert" =>
true,
98 "property" => $this->
lng->txt(
"member_status"),
99 "value" => $this->lng->txt(
"crs_status_pending")
104 if (isset(
$info[
'reg_info_list_prop'])) {
108 'property' =>
$info[
'reg_info_list_prop'][
'property'],
109 'value' =>
$info[
'reg_info_list_prop'][
'value']
112 if (isset(
$info[
'reg_info_list_prop_limit'])) {
116 'property' =>
$info[
'reg_info_list_prop_limit'][
'property'],
117 'propertyNameVisible' => (
bool) strlen(
$info[
'reg_info_list_prop_limit'][
'property']),
118 'value' =>
$info[
'reg_info_list_prop_limit'][
'value']
126 "property" => $this->
lng->txt(
'member_status'),
127 "value" => $this->lng->txt(
'on_waiting_list')
133 if (is_array(
$info)) {
137 'property' =>
$info[
'property'] ??
"",
138 'value' =>
$info[
'value'] ??
""
143 $hasCertificate = $this->getCertificatePreloader()->isPreloaded($this->
user->getId(), $this->obj_id);
144 if ($hasCertificate) {
145 $this->
lng->loadLanguageModule(
'certificate');
146 $cmd_link =
"ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->ref_id .
"&cmd=deliverCertificate";
149 'property' => $this->
lng->txt(
'certificate'),
150 'value' => $DIC->ui()->renderer()->render(
151 $DIC->ui()->factory()->link()->standard($this->lng->txt(
'download_certificate'), $cmd_link)
158 if (!$repo instanceof \
ILIAS\BookingManager\Reservations\ReservationDBRepository) {
159 $repo =
$DIC->bookingManager()->internal()->repo()->reservationWithContextObjCache([$this->obj_id]);
162 return $book_info->appendProperties($this->obj_id, $props);
176 if ($cmd !=
'view' && $cmd !=
'leave' && $cmd !=
'join' && $cmd !==
'leaveWaitList') {
180 if ($permission ==
'crs_linked') {
182 parent::checkCommandAccess(
'read', $cmd,
$ref_id, $type, $obj_id) ||
183 parent::checkCommandAccess(
'join', $cmd,
$ref_id, $type, $obj_id);
185 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...
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 getBookingInfoRepo()
Class ilObjCourseListGUI.
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 _isSubscriber(int $a_obj_id, int $a_usr_id)
static _isOnList(int $a_usr_id, int $a_obj_id)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
if(!file_exists('../ilias.ini.php'))