ILIAS  release_8 Revision v8.24
class.ilObjLearningSequenceListGUI.php
Go to the documentation of this file.
1<?php
2
19declare(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";
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}
createDefaultCommand(array $command)
Get default command link Overwritten for e.g categories,courses => they return a goto link If search ...
global $DIC
Definition: feed.php:28
Class HTTPServicesTest.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.
$dic
Definition: result.php:32