ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjIndividualAssessmentListGUI.php
Go to the documentation of this file.
1<?php
2
3require_once("./Services/Object/classes/class.ilObjectListGUI.php");
5{
6
10 public function init()
11 {
12 $this->static_link_enabled = true;
13 $this->delete_enabled = true;
14 $this->cut_enabled = true;
15 $this->copy_enabled = true;
16 $this->subscribe_enabled = true;
17 $this->link_enabled = true;
18 $this->info_screen_enabled = true;
19 $this->type = "iass";
20 $this->gui_class_name = "ilobjIndividualassessmentgui";
21
22 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
23 $this->enableSubstitutions($this->substitutions->isActive());
24
25 // general commands array
26 include_once('./Modules/IndividualAssessment/classes/class.ilObjIndividualAssessmentAccess.php');
28 }
29
30
31
39 public function getCommandFrame($a_cmd)
40 {
41 switch ($a_cmd) {
42 default:
43 $frame = ilFrameTargetInfo::_getFrame("MainContent");
44 break;
45 }
46
47 return $frame;
48 }
49
50 public function getCommandLink($a_cmd)
51 {
52 switch ($a_cmd) {
53 case 'edit':
54 $return = $this->ctrl->getLinkTargetByClass(array($this->gui_class_name,'ilIndividualassessmentsettingsgui'), "edit");
55 break;
56 case 'infoScreen':
57 $return = $this->ctrl->getLinkTargetByClass($this->gui_class_name, "view");
58 break;
59 default:
60 $return = parent::getCommandLink($a_cmd);
61 }
62
63 return $return;
64 }
65
74 public function getProperties()
75 {
76 return [];
77 }
78}
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 commandsthis method returns an array of all possible commands/permission combinationsexample: $co...
Class ilObjectListGUI.
enableSubstitutions($a_status)
Enable substitutions.