ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
15{
16
20 public function init()
21 {
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');
34 }
35
36
45 public function getProperties()
46 {
47 global $DIC;
48 $lng = $DIC['lng'];
49 $ilUser = $DIC['ilUser'];
50
51 $props = array();
52 include_once("./Modules/DataCollection/classes/class.ilObjDataCollectionAccess.php");
53
54 if (!ilObjDataCollectionAccess::_lookupOnline($this->obj_id)) {
55 $props[] = array(
56 "alert" => true,
57 "property" => $lng->txt("status"),
58 "value" => $lng->txt("offline"),
59 );
60 }
61
62 return $props;
63 }
64}
An exception for terminatinating execution or to throw for unit testing.
static _lookupOnline($a_id)
Check wether datacollection is online.
Class ilObjDataCollectionListGUI.
Class ilObjectListGUI.
global $DIC
Definition: saml.php:7
$ilUser
Definition: imgupload.php:18