ILIAS  release_7 Revision v7.30-3-g800a261c036
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
12{
16 public function init()
17 {
18 $this->static_link_enabled = true;
19 $this->delete_enabled = true;
20 $this->cut_enabled = true;
21 $this->copy_enabled = true;
22 $this->subscribe_enabled = true;
23 $this->link_enabled = true;
24 $this->info_screen_enabled = true;
25 $this->type = "exc";
26 $this->gui_class_name = "ilobjexercisegui";
27
28 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
29 if ($this->substitutions->isActive()) {
30 $this->substitutions_enabled = true;
31 }
32
33 // general commands array
34 $this->commands = ilObjExerciseAccess::_getCommands();
35 }
36
37
38
46 public function getCommandFrame($a_cmd)
47 {
48 switch ($a_cmd) {
49 default:
50 $frame = ilFrameTargetInfo::_getFrame("MainContent");
51 break;
52 }
53
54 return $frame;
55 }
56
57
58
67 public function getProperties()
68 {
71
72 $props = array();
74 if ($rem["mtime"] != "") {
75 $props[] = array(
76 "property" => ($rem["cnt"] > 1)
77 ? $this->lng->txt("exc_next_deadline")
78 : $this->lng->txt("exc_next_deadline_single"),
79 "value" => $rem["mtime"]
80 );
81 }
82
83 return $props;
84 }
85
86
94 public function getCommandLink($a_cmd)
95 {
96 // separate method for this line
97 $cmd_link = "ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=" . $this->ref_id . "&cmd=$a_cmd";
98
99 return $cmd_link;
100 }
101} // END class.ilObjTestListGUI
An exception for terminatinating execution or to throw for unit testing.
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
static _getFrame($a_class, $a_type='')
Get content frame name.
static _getCommands()
get commands
static _lookupRemainingWorkingTimeString($a_obj_id)
ListGUI class for exercise objects.
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