ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilObjBibliographicListGUI.php
Go to the documentation of this file.
1 <?php
2 
26 {
30  #[\Override]
31  public function init(): void
32  {
33  $this->lng->loadLanguageModule('bibl');
34  $this->copy_enabled = true;
35  $this->delete_enabled = true;
36  $this->cut_enabled = true;
37  $this->subscribe_enabled = false;
38  $this->link_enabled = true;
39  $this->info_screen_enabled = true;
40  $this->type = "bibl";
41  $this->gui_class_name = "ilobjbibliographicgui";
42  $this->commands = ilObjBibliographicAccess::_getCommands();
43  }
44 
45 
54  #[\Override]
55  public function getProperties(): array
56  {
57  global $DIC;
58  $lng = $DIC['lng'];
59 
60  $props = [];
61  $obj = new ilObjBibliographic($this->obj_id);
62  if (!$obj->isMigrated()) {
63  $props[] = [
64  "alert" => true,
65  "property" => $lng->txt("migrated"),
66  "value" => $lng->txt("not_yet_migrated"),
67  "propertyNameVisible" => false,
68  ];
69  }
70  if (!ilObjBibliographicAccess::_lookupOnline($this->obj_id)) {
71  $props[] = [
72  "alert" => true,
73  "property" => $lng->txt("status"),
74  "value" => $lng->txt("offline"),
75  "newline" => true
76  ];
77  }
78 
79  return $props;
80  }
81 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupOnline(int $a_id)
Check wether bibliographic is online or not.
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjBibliographic.