ILIAS  release_8 Revision v8.24
class.ilObjDataCollectionListGUI.php
Go to the documentation of this file.
1<?php
2
20{
24 public function init(): void
25 {
26 $this->copy_enabled = true;
27 $this->delete_enabled = true;
28 $this->cut_enabled = true;
29 $this->subscribe_enabled = true;
30 $this->link_enabled = true;
31 $this->info_screen_enabled = true;
32 $this->type = "dcl";
33 $this->gui_class_name = "ilobjdatacollectiongui";
34
35 // general commands array
37 }
38
46 public function getProperties(): array
47 {
48 global $DIC;
49 $lng = $DIC['lng'];
50
51 $props = array();
52
53 if (!ilObjDataCollectionAccess::_lookupOnline($this->obj_id)) {
54 $props[] = array(
55 "alert" => true,
56 "property" => $lng->txt("status"),
57 "value" => $lng->txt("offline"),
58 );
59 }
60
61 return $props;
62 }
63}
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 datacollection is online.
static _getCommands()
get commands this method returns an array of all possible commands/permission combinations example: $...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28