ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
class.ilObjStudyProgrammeListGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct()
24 {
25 global $DIC;
27 $this->lng->loadLanguageModule("prg");
28 }
29
30 public function init(): void
31 {
32 $this->static_link_enabled = true;
33 $this->delete_enabled = true;
34 $this->cut_enabled = false;
35 $this->info_screen_enabled = true;
36 $this->copy_enabled = true;
37 $this->subscribe_enabled = true;
38 $this->link_enabled = false;
39
40 $this->type = "prg";
41 $this->gui_class_name = "ilobjstudyprogrammegui";
42
43 // general commands array
45 }
46
50 public function insertTimingsCommand(): void
51 {
52 }
53
57 public function insertCommonSocialCommands($header_actions = false): void
58 {
59 }
60
64 public function getListItemHTML(
65 int $ref_id,
66 int $obj_id,
67 string $title,
68 string $description,
69 bool $use_async = false,
70 bool $get_async_commands = false,
71 string $async_url = "",
72 int $context = self::CONTEXT_REPOSITORY
73 ): string {
74 $prg = new ilObjStudyProgramme($ref_id);
75 if ($this->getCheckboxStatus() && $prg->hasAssignments()) {
76 $this->setAdditionalInformation($this->lng->txt("prg_can_not_manage_in_repo"));
77 $this->enableCheckbox(false);
78 } else {
79 $this->setAdditionalInformation(null);
80 }
81
82 return parent::getListItemHTML(
83 $ref_id,
84 $obj_id,
85 $title,
87 $use_async,
88 $get_async_commands,
89 $async_url
90 );
91 }
92}
getListItemHTML(int $ref_id, int $obj_id, string $title, string $description, bool $use_async=false, bool $get_async_commands=false, string $async_url="", int $context=self::CONTEXT_REPOSITORY)
insertCommonSocialCommands($header_actions=false)
no social commands needed in program.
insertTimingsCommand()
no timing commands needed for program.
setAdditionalInformation(?string $val)
enableCheckbox(bool $status)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc