ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
39 public function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
40 {
41 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
42 }
43
44
52 public function getCommandFrame($a_cmd)
53 {
54 switch ($a_cmd) {
55 default:
56 $frame = ilFrameTargetInfo::_getFrame("MainContent");
57 break;
58 }
59
60 return $frame;
61 }
62
63 public function getCommandLink($a_cmd)
64 {
65 switch ($a_cmd) {
66 case 'edit':
67 $return = $this->ctrl->getLinkTargetByClass(array($this->gui_class_name,'ilIndividualassessmentsettingsgui'), "edit");
68 break;
69 case 'infoScreen':
70 $return = $this->ctrl->getLinkTargetByClass($this->gui_class_name, "view");
71 break;
72 default:
73 $return = parent::getCommandLink($a_cmd);
74 }
75
76 return $return;
77 }
78
87 public function getProperties()
88 {
89 return [];
90 }
91}
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...
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
Class ilObjectListGUI.
enableSubstitutions($a_status)
Enable substitutions.