ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilObjMediaCastListGUI.php
Go to the documentation of this file.
1 <?php
2 
20 {
21  protected int $child_id;
22 
23  public function init(): void
24  {
25  $this->copy_enabled = true;
26  $this->delete_enabled = true;
27  $this->cut_enabled = true;
28  $this->subscribe_enabled = true;
29  $this->link_enabled = true;
30  $this->info_screen_enabled = true;
31  $this->type = "mcst";
32  $this->gui_class_name = "ilobjmediacastgui";
33 
34  // general commands array
35  $this->commands = ilObjMediaCastAccess::_getCommands();
36  $this->enableLearningProgress(true);
37  }
38 
39  public function getCommandLink(string $cmd): string
40  {
41  switch ($cmd) {
42 
43  case "learningProgress":
44  $this->ctrl->setParameterByClass(ilObjMediaCastGUI::class, "ref_id", $this->ref_id);
45  $cmd_link = $this->ctrl->getLinkTargetByClass(
46  [ilMediaCastHandlerGUI::class, ilObjMediaCastGUI::class, ilLearningProgressGUI::class ],
47  ""
48  );
49  break;
50 
51  default:
52  $this->ctrl->setParameterByClass(ilObjMediaCastGUI::class, "ref_id", $this->ref_id);
53  $cmd_link = $this->ctrl->getLinkTargetByClass([ilMediaCastHandlerGUI::class, ilObjMediaCastGUI::class], $cmd);
54  break;
55  }
56  return $cmd_link;
57  }
58 
59  public function setChildId(string $a_child_id): void
60  {
61  $this->child_id = $a_child_id;
62  }
63 
64  public function getChildId(): string
65  {
66  return $this->child_id;
67  }
68 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
enableLearningProgress(bool $enabled)