ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4include_once "Services/Object/classes/class.ilObjectListGUI.php";
5
15{
19 public function init()
20 {
21 $this->static_link_enabled = true;
22 $this->delete_enabled = true;
23 $this->cut_enabled = true;
24 $this->copy_enabled = true;
25 $this->subscribe_enabled = true;
26 $this->link_enabled = true;
27 $this->info_screen_enabled = true;
28 $this->type = "exc";
29 $this->gui_class_name = "ilobjexercisegui";
30
31 // general commands array
32 include_once('./Modules/Exercise/classes/class.ilObjExerciseAccess.php');
33 $this->commands = ilObjExerciseAccess::_getCommands();
34 }
35
36
45 public function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
46 {
47 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
48 }
49
50
58 public function getCommandFrame($a_cmd)
59 {
60 switch ($a_cmd) {
61 default:
62 $frame = ilFrameTargetInfo::_getFrame("MainContent");
63 break;
64 }
65
66 return $frame;
67 }
68
69
70
79 public function getProperties()
80 {
83
84 $props = array();
86 if ($rem["mtime"] != "") {
87 $props[] = array(
88 "property" => ($rem["cnt"] > 1)
89 ? $this->lng->txt("exc_next_deadline")
90 : $this->lng->txt("exc_next_deadline_single"),
91 "value" => $rem["mtime"]
92 );
93 }
94
95 return $props;
96 }
97
98
106 public function getCommandLink($a_cmd)
107 {
108 // separate method for this line
109 $cmd_link = "ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=" . $this->ref_id . "&cmd=$a_cmd";
110
111 return $cmd_link;
112 }
113} // END class.ilObjTestListGUI
An exception for terminatinating execution or to throw for unit testing.
static _getFrame($a_class, $a_type='')
Get content frame name.
static _getCommands()
get commands
static _lookupRemainingWorkingTimeString($a_obj_id)
ListGUI class for exercise objects.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
getProperties()
Get item properties.
getCommandLink($a_cmd)
Get command link url.
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18