ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
class.ilObjDataCollectionListGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 require_once('./Services/Object/classes/class.ilObjectListGUI.php');
6 
17 
21  public function init() {
22  $this->copy_enabled = true;
23  $this->delete_enabled = true;
24  $this->cut_enabled = true;
25  $this->subscribe_enabled = true;
26  $this->link_enabled = true;
27  $this->payment_enabled = false;
28  $this->info_screen_enabled = true;
29  $this->type = "dcl";
30  $this->gui_class_name = "ilobjdatacollectiongui";
31 
32  // general commands array
33  include_once('./Modules/DataCollection/classes/class.ilObjDataCollectionAccess.php');
34  $this->commands = ilObjDataCollectionAccess::_getCommands();
35  }
36 
37 
46  public function getProperties() {
47  global $lng, $ilUser;
48 
49  $props = array();
50  include_once("./Modules/DataCollection/classes/class.ilObjDataCollectionAccess.php");
51 
52  if (!ilObjDataCollectionAccess::_lookupOnline($this->obj_id)) {
53  $props[] = array(
54  "alert" => true,
55  "property" => $lng->txt("status"),
56  "value" => $lng->txt("offline")
57  );
58  }
59 
60  return $props;
61  }
62 }
63 
64 ?>
Class ilObjDataCollectionListGUI.
_lookupOnline($a_id)
Check wether datacollection is online.
Class ilObjectListGUI.
global $ilUser
Definition: imgupload.php:15
global $lng
Definition: privfeed.php:40