ILIAS  release_4-4 Revision
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["mtime"] != "")
96  {
97  $props[] = array(
98  "property" => ($rem["cnt"] > 1)
99  ? $this->lng->txt("exc_next_deadline")
100  : $this->lng->txt("exc_next_deadline_single"),
101  "value" => $rem["mtime"]
102  );
103  }
104 
105  return $props;
106  }
107 
108 
116  function getCommandLink($a_cmd)
117  {
118  // separate method for this line
119  $cmd_link = "ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
120 
121  return $cmd_link;
122  }
123 
124 
125 
126 } // END class.ilObjTestListGUI
127 ?>
getCommandFrame($a_cmd)
Get command target frame.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
ilObjectListGUI()
constructor
getProperties()
Get item properties.
Class ilObjectListGUI.
ListGUI class for exercise objects.
global $ilUser
Definition: imgupload.php:15
static _getFrame($a_class, $a_type='')
Get content frame name.
global $lng
Definition: privfeed.php:40
getCommandLink($a_cmd)
Get command link url.