ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 public function init()
21 {
22 global $DIC;
23
24 $log = $DIC->logger()->root();
25 $log->debug("sdf");
26
27 $this->copy_enabled = false;
28 $this->delete_enabled = true;
29 $this->cut_enabled = false;
30 $this->subscribe_enabled = false;
31 $this->link_enabled = false;
32 $this->info_screen_enabled = true;
33 $this->type = "poll";
34 $this->gui_class_name = "ilobjpollgui";
35
36 // general commands array
37 include_once('./Modules/Poll/classes/class.ilObjPollAccess.php');
38 $this->commands = ilObjPollAccess::_getCommands();
39 }
40
49 public function getProperties()
50 {
52
53 // BEGIN WebDAV: Get parent properties
54 // BEGIN ChangeEvent: Get parent properties
55 $props = parent::getProperties();
56 // END ChangeEvent: Get parent properties
57 // END WebDAV: Get parent properties
58
59 // offline
60 include_once 'Modules/Poll/classes/class.ilObjPollAccess.php';
61 if (!ilObjPollAccess::_lookupOnline($this->obj_id)) {
62 $props[] = array("alert" => true, "property" => $lng->txt("status"),
63 "value" => $lng->txt("offline"));
64 }
65
66 return $props;
67 }
68}
An exception for terminatinating execution or to throw for unit testing.
static _getCommands()
get commands
static _lookupOnline($a_obj_id)
get status
Class ilObjPollListGUI.
getProperties()
Get item properties.
Class ilObjectListGUI.
global $DIC
Definition: saml.php:7