ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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->info_screen_enabled = true;
28  $this->type = "dcl";
29  $this->gui_class_name = "ilobjdatacollectiongui";
30 
31  // general commands array
32  include_once('./Modules/DataCollection/classes/class.ilObjDataCollectionAccess.php');
33  $this->commands = ilObjDataCollectionAccess::_getCommands();
34  }
35 
36 
45  public function getProperties() {
46  global $DIC;
47  $lng = $DIC['lng'];
48  $ilUser = $DIC['ilUser'];
49 
50  $props = array();
51  include_once("./Modules/DataCollection/classes/class.ilObjDataCollectionAccess.php");
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 }
64 
65 ?>
static _lookupOnline($a_id)
Check wether datacollection is online.
Class ilObjDataCollectionListGUI.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
global $DIC