ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilObjPollListGUI.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
5include_once "Services/Object/classes/class.ilObjectListGUI.php";
6
16{
20 function init()
21 {
22 $this->copy_enabled = false;
23 $this->delete_enabled = true;
24 $this->cut_enabled = false;
25 $this->subscribe_enabled = false;
26 $this->link_enabled = false;
27 $this->payment_enabled = false;
28 $this->info_screen_enabled = true;
29 $this->type = "poll";
30 $this->gui_class_name = "ilobjpollgui";
31
32 // general commands array
33 include_once('./Modules/Poll/classes/class.ilObjPollAccess.php');
34 $this->commands = ilObjPollAccess::_getCommands();
35 }
36
45 function getProperties()
46 {
47 global $lng;
48
49 // BEGIN WebDAV: Get parent properties
50 // BEGIN ChangeEvent: Get parent properties
51 $props = parent::getProperties();
52 // END ChangeEvent: Get parent properties
53 // END WebDAV: Get parent properties
54
55 // offline
56 include_once 'Modules/Poll/classes/class.ilObjPollAccess.php';
57 if(!ilObjPollAccess::_lookupOnline($this->obj_id))
58 {
59 $props[] = array("alert" => true, "property" => $lng->txt("status"),
60 "value" => $lng->txt("offline"));
61 }
62
63 return $props;
64 }
65}
66
67?>
_getCommands()
get commands
static _lookupOnline($a_obj_id)
get status
Class ilObjPollListGUI.
getProperties()
Get item properties.
Class ilObjectListGUI.
global $lng
Definition: privfeed.php:40