ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilObjStudyProgrammeListGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  public function __construct()
24  {
26  $this->lng->loadLanguageModule("prg");
27  }
28 
29  public function init(): void
30  {
31  $this->static_link_enabled = true;
32  $this->delete_enabled = true;
33  $this->cut_enabled = false;
34  $this->info_screen_enabled = true;
35  $this->copy_enabled = true;
36  $this->subscribe_enabled = true;
37  $this->link_enabled = false;
38 
39  $this->type = "prg";
40  $this->gui_class_name = "ilobjstudyprogrammegui";
41 
42  // general commands array
43  $this->commands = ilObjStudyProgrammeAccess::_getCommands();
44  }
45 
49  public function insertTimingsCommand(): void
50  {
51  }
52 
56  public function insertCommonSocialCommands($header_actions = false): void
57  {
58  }
59 
63  public function getListItemHTML(
64  int $ref_id,
65  int $obj_id,
66  string $title,
67  string $description,
68  bool $use_async = false,
69  bool $get_async_commands = false,
70  string $async_url = "",
71  int $context = self::CONTEXT_REPOSITORY
72  ): string {
73  $prg = new ilObjStudyProgramme($ref_id);
74  if ($this->getCheckboxStatus() && $prg->hasAssignments()) {
75  $this->setAdditionalInformation($this->lng->txt("prg_can_not_manage_in_repo"));
76  $this->enableCheckbox(false);
77  } else {
79  }
80 
81  return parent::getListItemHTML(
82  $ref_id,
83  $obj_id,
84  $title,
85  $description,
86  $use_async,
87  $get_async_commands,
88  $async_url
89  );
90  }
91 }
setAdditionalInformation(?string $val)
insertCommonSocialCommands($header_actions=false)
no social commands needed in program.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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)
__construct(Container $dic, ilPlugin $plugin)
enableCheckbox(bool $status)
insertTimingsCommand()
no timing commands needed for program.