ILIAS  release_8 Revision v8.24
class.ilObjBibliographicListGUI.php
Go to the documentation of this file.
1<?php
2
26{
30 public function init(): void
31 {
32 $this->lng->loadLanguageModule('bibl');
33 $this->copy_enabled = true;
34 $this->delete_enabled = true;
35 $this->cut_enabled = true;
36 $this->subscribe_enabled = false;
37 $this->link_enabled = true;
38 $this->info_screen_enabled = true;
39 $this->type = "bibl";
40 $this->gui_class_name = "ilobjbibliographicgui";
42 }
43
44
53 public function getProperties(): array
54 {
55 global $DIC;
56 $lng = $DIC['lng'];
57
58 $props = array();
59 $obj = new ilObjBibliographic($this->obj_id);
60 if (!$obj->isMigrated()) {
61 $props[] = [
62 "alert" => true,
63 "property" => $lng->txt("migrated"),
64 "value" => $lng->txt("not_yet_migrated"),
65 "propertyNameVisible" => false,
66 ];
67 }
68 if (!ilObjBibliographicAccess::_lookupOnline($this->obj_id)) {
69 $props[] = array(
70 "alert" => true,
71 "property" => $lng->txt("status"),
72 "value" => $lng->txt("offline"),
73 "newline" => true
74 );
75 }
76
77 return $props;
78 }
79}
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjBibliographic.
global $DIC
Definition: feed.php:28