ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjExerciseListGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 public function init(): void
27 {
28 $this->static_link_enabled = true;
29 $this->delete_enabled = true;
30 $this->cut_enabled = true;
31 $this->copy_enabled = true;
32 $this->subscribe_enabled = true;
33 $this->link_enabled = true;
34 $this->info_screen_enabled = true;
35 $this->type = "exc";
36 $this->gui_class_name = "ilobjexercisegui";
37
38 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
39 if ($this->substitutions->isActive()) {
40 $this->substitutions_enabled = true;
41 }
42
43 // general commands array
44 $this->commands = ilObjExerciseAccess::_getCommands();
45 }
46
50 public function getProperties(): array
51 {
52 $props = parent::getProperties();
53
55 if ($rem["mtime"] != "") {
56 $props[] = array(
57 "property" => ($rem["cnt"] > 1)
58 ? $this->lng->txt("exc_next_deadline")
59 : $this->lng->txt("exc_next_deadline_single"),
60 "value" => $rem["mtime"]
61 );
62 }
63
64 return $props;
65 }
66
67 public function getCommandLink(string $cmd): string
68 {
69 return "ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=" . $this->ref_id . "&cmd=$cmd";
70 }
71}
static _getInstanceByObjectType(string $a_type)
static _getCommands()
get commands
static _lookupRemainingWorkingTimeString(int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getCommandLink(string $cmd)
Get command link url.