ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
37 include_once "Services/Object/classes/class.ilObjectListGUI.php";
38 
40 {
44  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");
57  $this->commands = ilObjSurveyQUestionPoolAccess::_getCommands();
58  }
59 
60 
69  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  function getCommandFrame($a_cmd)
83  {
84  switch($a_cmd)
85  {
86  case "":
87  case "questions":
88  include_once "./Services/UICore/classes/class.ilFrameTargetInfo.php";
89  $frame = ilFrameTargetInfo::_getFrame("MainContent");
90  break;
91 
92  default:
93  }
94 
95  return $frame;
96  }
97 
98 
99 
108  function getProperties()
109  {
110  global $lng, $ilUser;
111 
112  $props = array();
113 
114  include_once("./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php");
115  if (!ilObjSurveyQuestionPool::_lookupOnline($this->obj_id))
116  {
117  $props[] = array("alert" => true, "property" => $lng->txt("status"),
118  "value" => $lng->txt("offline"));
119  }
120  return $props;
121  }
122 
123 
131  function getCommandLink($a_cmd)
132  {
133  // separate method for this line
134  $cmd_link = "ilias.php?baseClass=ilObjSurveyQuestionPoolGUI&amp;ref_id=" . $this->ref_id . "&amp;cmd=$a_cmd";
135 
136  return $cmd_link;
137  }
138 
139 
140 
141 } // END class.ilObjTestListGUI
142 ?>
Class ilObjSurveyQuestionPoolListGUI.
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
static _getFrame($a_class, $a_type='')
Get content frame name.
global $lng
Definition: privfeed.php:17
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item