ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjSurveyQuestionPoolListGUI.php
Go to the documentation of this file.
1<?php
2/*
3 +-----------------------------------------------------------------------------+
4 | ILIAS open source |
5 +-----------------------------------------------------------------------------+
6 | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7 | |
8 | This program is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU General Public License |
10 | as published by the Free Software Foundation; either version 2 |
11 | of the License, or (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 +-----------------------------------------------------------------------------+
22*/
23
24
37include_once "Services/Object/classes/class.ilObjectListGUI.php";
38
40{
44 public function init()
45 {
46 $this->delete_enabled = true;
47 $this->cut_enabled = true;
48 $this->copy_enabled = true;
49 $this->subscribe_enabled = true;
50 $this->link_enabled = true;
51 $this->info_screen_enabled = true;
52 $this->type = "spl";
53 $this->gui_class_name = "ilobjsurveyquestionpoolgui";
54
55 // general commands array
56 include_once("./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPoolAccess.php");
58 }
59
60
69 public function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
70 {
71 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
72 }
73
74
82 public function getCommandFrame($a_cmd)
83 {
84 switch ($a_cmd) {
85 case "":
86 case "questions":
87 include_once "./Services/UICore/classes/class.ilFrameTargetInfo.php";
88 $frame = ilFrameTargetInfo::_getFrame("MainContent");
89 break;
90
91 default:
92 }
93
94 return $frame;
95 }
96
97
98
107 public function getProperties()
108 {
111
112 $props = array();
113
114 include_once("./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php");
115 if (!ilObjSurveyQuestionPool::_lookupOnline($this->obj_id)) {
116 $props[] = array("alert" => true, "property" => $lng->txt("status"),
117 "value" => $lng->txt("offline"));
118 }
119 return $props;
120 }
121
122
130 public function getCommandLink($a_cmd)
131 {
132 // separate method for this line
133 $cmd_link = "ilias.php?baseClass=ilObjSurveyQuestionPoolGUI&amp;ref_id=" . $this->ref_id . "&amp;cmd=$a_cmd";
134
135 return $cmd_link;
136 }
137} // END class.ilObjTestListGUI
An exception for terminatinating execution or to throw for unit testing.
static _getFrame($a_class, $a_type='')
Get content frame name.
Class ilObjSurveyQuestionPoolListGUI.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18