ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjSurveyQuestionPoolListGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
12 {
16  public function init()
17  {
18  $this->delete_enabled = true;
19  $this->cut_enabled = true;
20  $this->copy_enabled = true;
21  $this->subscribe_enabled = true;
22  $this->link_enabled = true;
23  $this->info_screen_enabled = true;
24  $this->type = "spl";
25  $this->gui_class_name = "ilobjsurveyquestionpoolgui";
26 
27  // general commands array
29  }
30 
31 
32 
40  public function getCommandFrame($a_cmd)
41  {
42  switch ($a_cmd) {
43  case "":
44  case "questions":
45  $frame = ilFrameTargetInfo::_getFrame("MainContent");
46  break;
47 
48  default:
49  }
50 
51  return $frame;
52  }
53 
54 
55 
64  public function getProperties()
65  {
66  $lng = $this->lng;
68 
69  $props = array();
70 
71  if (!ilObjSurveyQuestionPool::_lookupOnline($this->obj_id)) {
72  $props[] = array("alert" => true, "property" => $lng->txt("status"),
73  "value" => $lng->txt("offline"));
74  }
75  return $props;
76  }
77 
78 
86  public function getCommandLink($a_cmd)
87  {
88  // separate method for this line
89  $cmd_link = "ilias.php?baseClass=ilObjSurveyQuestionPoolGUI&amp;ref_id=" . $this->ref_id . "&amp;cmd=$a_cmd";
90 
91  return $cmd_link;
92  }
93 } // END class.ilObjTestListGUI
Class ilObjSurveyQuestionPoolListGUI.
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18
static _getFrame($a_class, $a_type='')
Get content frame name.