ILIAS  release_8 Revision v8.24
class.ilObjIndividualAssessmentListGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function init(): void
24 {
25 $this->static_link_enabled = true;
26 $this->delete_enabled = true;
27 $this->cut_enabled = true;
28 $this->copy_enabled = true;
29 $this->subscribe_enabled = true;
30 $this->link_enabled = true;
31 $this->info_screen_enabled = true;
32 $this->type = "iass";
33 $this->gui_class_name = "ilobjindividualassessmentgui";
34
35 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
36 $this->enableSubstitutions($this->substitutions->isActive());
37
38 // general commands array
40 }
41
49 public function getCommandFrame(string $cmd): string
50 {
51 return ilFrameTargetInfo::_getFrame("MainContent");
52 }
53
54 public function getCommandLink(string $cmd): string
55 {
56 switch ($cmd) {
57 case 'edit':
58 $return = $this->ctrl->getLinkTargetByClass(
59 array($this->gui_class_name,'ilIndividualassessmentsettingsgui'),
60 "edit"
61 );
62 break;
63 case 'infoScreen':
64 $return = $this->ctrl->getLinkTargetByClass($this->gui_class_name, "view");
65 break;
66 default:
67 $return = parent::getCommandLink($cmd);
68 }
69
70 return $return;
71 }
72
81 public function getProperties(): array
82 {
83 return [];
84 }
85}
static _getInstanceByObjectType(string $a_type)
static _getFrame(string $a_class)
static _getCommands()
get commandsthis method returns an array of all possible commands/permission combinationsexample: $co...
getCommandFrame(string $cmd)
Get command target frame.
enableSubstitutions(bool $status)