ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
5 include_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->info_screen_enabled = true;
28  $this->type = "poll";
29  $this->gui_class_name = "ilobjpollgui";
30 
31  // general commands array
32  include_once('./Modules/Poll/classes/class.ilObjPollAccess.php');
33  $this->commands = ilObjPollAccess::_getCommands();
34  }
35 
44  function getProperties()
45  {
46  global $lng;
47 
48  // BEGIN WebDAV: Get parent properties
49  // BEGIN ChangeEvent: Get parent properties
50  $props = parent::getProperties();
51  // END ChangeEvent: Get parent properties
52  // END WebDAV: Get parent properties
53 
54  // offline
55  include_once 'Modules/Poll/classes/class.ilObjPollAccess.php';
56  if(!ilObjPollAccess::_lookupOnline($this->obj_id))
57  {
58  $props[] = array("alert" => true, "property" => $lng->txt("status"),
59  "value" => $lng->txt("offline"));
60  }
61 
62  return $props;
63  }
64 }
65 
66 ?>
static _getCommands()
get commands
Class ilObjectListGUI.
Create styles array
The data for the language used.
getProperties()
Get item properties.
global $lng
Definition: privfeed.php:17
Class ilObjPollListGUI.
static _lookupOnline($a_obj_id)
get status