ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjLearningSequenceListGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  public function __construct()
24  {
26 
27  $dic = $this->getDIC();
29  $this->lng = $dic->language();
30  $this->lng->loadLanguageModule($obj_type);
31  }
32 
33  protected function getDIC(): ILIAS\DI\Container
34  {
35  global $DIC;
36  return $DIC;
37  }
38 
39  public function init(): void
40  {
41  $this->static_link_enabled = true;
42  $this->delete_enabled = true;
43  $this->cut_enabled = true;
44  $this->info_screen_enabled = true;
45  $this->copy_enabled = true;
46  $this->subscribe_enabled = true;
47  $this->link_enabled = true;
48  $this->gui_class_name = "ilobjlearningsequencegui";
49  $this->type = ilObjLearningSequence::OBJ_TYPE;
51  }
52 
53  public function getProperties(): array
54  {
55  $props = parent::getProperties();
56 
57  if (ilObjLearningSequenceAccess::isOffline($this->ref_id)) {
58  $props[] = [
59  "alert" => true,
60  "property" => $this->lng->txt("status"),
61  "value" => $this->lng->txt("offline")
62  ];
63  }
64 
65  return $props;
66  }
67 
68  public function createDefaultCommand(array $command): array
69  {
70  return [
71  "link" => ilLink::_getStaticLink($this->ref_id, $this->type, true),
72  "frame" => "_top"
73  ];
74  }
75 }
Class ChatMainBarProvider .
global $DIC
Definition: feed.php:28
Class HTTPServicesTest.
__construct(Container $dic, ilPlugin $plugin)
$dic
Definition: result.php:32