ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
16{
17
21 public function init()
22 {
23 $this->copy_enabled = true;
24 $this->delete_enabled = true;
25 $this->cut_enabled = true;
26 $this->subscribe_enabled = true;
27 $this->link_enabled = true;
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');
35 }
36
37
46 public function getProperties()
47 {
48 global $DIC;
49 $lng = $DIC['lng'];
50 $ilUser = $DIC['ilUser'];
51
52 $props = array();
53 include_once("./Modules/DataCollection/classes/class.ilObjDataCollectionAccess.php");
54
55 if (!ilObjDataCollectionAccess::_lookupOnline($this->obj_id)) {
56 $props[] = array(
57 "alert" => true,
58 "property" => $lng->txt("status"),
59 "value" => $lng->txt("offline")
60 );
61 }
62
63 return $props;
64 }
65}
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