ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilObjDataCollectionListGUI.php
Go to the documentation of this file.
1 <?php
2 
20 declare(strict_types=1);
21 
23 {
27  public function init(): void
28  {
29  $this->copy_enabled = true;
30  $this->delete_enabled = true;
31  $this->cut_enabled = true;
32  $this->subscribe_enabled = true;
33  $this->link_enabled = true;
34  $this->info_screen_enabled = true;
35  $this->type = "dcl";
36  $this->gui_class_name = "ilobjdatacollectiongui";
37 
38  // general commands array
39  $this->commands = ilObjDataCollectionAccess::_getCommands();
40  }
41 
49  public function getProperties(): array
50  {
51  $props = [];
52 
53  if (!ilObjDataCollectionAccess::_lookupOnline($this->obj_id)) {
54  $props[] = [
55  "alert" => true,
56  "property" => $this->lng->txt("status"),
57  "value" => $this->lng->txt("offline"),
58  ];
59  }
60 
61  return $props;
62  }
63 }
static _getCommands()
get commands this method returns an array of all possible commands/permission combinations example: $...
static _lookupOnline(int $a_id)
Check wether datacollection is online.