ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 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 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 function getCommandFrame($a_cmd)
59 {
60 switch($a_cmd)
61 {
62 default:
63 $frame = ilFrameTargetInfo::_getFrame("MainContent");
64 break;
65 }
66
67 return $frame;
68 }
69
70
71
80 function getProperties()
81 {
82 global $lng, $ilUser;
83
84 $props = array();
86 if ($rem["mtime"] != "")
87 {
88 $props[] = array(
89 "property" => ($rem["cnt"] > 1)
90 ? $this->lng->txt("exc_next_deadline")
91 : $this->lng->txt("exc_next_deadline_single"),
92 "value" => $rem["mtime"]
93 );
94 }
95
96 return $props;
97 }
98
99
107 function getCommandLink($a_cmd)
108 {
109 // separate method for this line
110 $cmd_link = "ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
111
112 return $cmd_link;
113 }
114
115
116
117} // END class.ilObjTestListGUI
118?>
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.
global $lng
Definition: privfeed.php:17
$ilUser
Definition: imgupload.php:18