ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjDataCollectionListGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
26 public function init(): void
27 {
28 $this->copy_enabled = true;
29 $this->delete_enabled = true;
30 $this->cut_enabled = true;
31 $this->subscribe_enabled = true;
32 $this->link_enabled = true;
33 $this->info_screen_enabled = true;
34 $this->type = "dcl";
35 $this->gui_class_name = "ilobjdatacollectiongui";
36
37 // general commands array
39 }
40
48 public function getProperties(): array
49 {
50 $props = [];
51
52 if (!ilObjDataCollectionAccess::_lookupOnline($this->obj_id)) {
53 $props[] = [
54 "alert" => true,
55 "property" => $this->lng->txt("status"),
56 "value" => $this->lng->txt("offline"),
57 ];
58 }
59
60 return $props;
61 }
62}
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: $...