ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilObjExerciseListGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once "Services/Object/classes/class.ilObjectListGUI.php";
5 
15 {
20  {
21  $this->ilObjectListGUI();
22  }
23 
27  function init()
28  {
29  $this->static_link_enabled = true;
30  $this->delete_enabled = true;
31  $this->cut_enabled = true;
32  $this->copy_enabled = true;
33  $this->subscribe_enabled = true;
34  $this->link_enabled = true;
35  $this->payment_enabled = false;
36  $this->info_screen_enabled = true;
37  $this->type = "exc";
38  $this->gui_class_name = "ilobjexercisegui";
39 
40  // general commands array
41  include_once('./Modules/Exercise/classes/class.ilObjExerciseAccess.php');
42  $this->commands = ilObjExerciseAccess::_getCommands();
43  }
44 
45 
54  function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
55  {
56  parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
57  }
58 
59 
67  function getCommandFrame($a_cmd)
68  {
69  switch($a_cmd)
70  {
71  default:
72  $frame = ilFrameTargetInfo::_getFrame("MainContent");
73  break;
74  }
75 
76  return $frame;
77  }
78 
79 
80 
89  function getProperties()
90  {
91  global $lng, $ilUser;
92 
93  $props = array();
94 /* $props[] = array(
95  "property" => $this->lng->txt("exc_time_to_send"),
96  "value" => ilObjExerciseAccess::_lookupRemainingWorkingTimeString($this->obj_id)
97  );*/
98 
99  return $props;
100  }
101 
102 
110  function getCommandLink($a_cmd)
111  {
112  // separate method for this line
113  $cmd_link = "ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
114 
115  return $cmd_link;
116  }
117 
118 
119 
120 } // END class.ilObjTestListGUI
121 ?>