ILIAS  release_4-3 Revision
 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 = true;
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();
95  if ($rem != "")
96  {
97  $props[] = array(
98  "property" => $this->lng->txt("exc_next_deadline"),
100  );
101  }
102 
103  return $props;
104  }
105 
106 
114  function getCommandLink($a_cmd)
115  {
116  // separate method for this line
117  $cmd_link = "ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
118 
119  return $cmd_link;
120  }
121 
122 
123 
124 } // END class.ilObjTestListGUI
125 ?>