ILIAS  release_8 Revision v8.24
class.ilQTIItemfeedback.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
31{
32 public const VIEW_ALL = "1";
33 public const VIEW_ADMINISTRATOR = "2";
34 public const VIEW_ADMINAUTHORITY = "3";
35 public const VIEW_ASSESSOR = "4";
36 public const VIEW_AUTHOR = "5";
37 public const VIEW_CANDIDATE = "6";
38 public const VIEW_INVIGILATORPROCTOR = "7";
39 public const VIEW_PSYCHOMETRICIAN = "8";
40 public const VIEW_SCORER = "9";
41 public const VIEW_TUTOR = "10";
42
43 public ?string $view = null;
44 public ?string $ident = null;
45 public ?string $title = null;
47 public array $flow_mat = [];
49 public array $material = [];
50
51 public function setView(string $a_view): void
52 {
53 switch (strtolower($a_view)) {
54 case "1":
55 case "all":
56 $this->view = self::VIEW_ALL;
57 break;
58 case "2":
59 case "administrator":
60 $this->view = self::VIEW_ADMINISTRATOR;
61 break;
62 case "3":
63 case "adminauthority":
64 $this->view = self::VIEW_ADMINAUTHORITY;
65 break;
66 case "4":
67 case "assessor":
68 $this->view = self::VIEW_ASSESSOR;
69 break;
70 case "5":
71 case "author":
72 $this->view = self::VIEW_AUTHOR;
73 break;
74 case "6":
75 case "candidate":
76 $this->view = self::VIEW_CANDIDATE;
77 break;
78 case "7":
79 case "invigilatorproctor":
81 break;
82 case "8":
83 case "psychometrician":
84 $this->view = self::VIEW_PSYCHOMETRICIAN;
85 break;
86 case "9":
87 case "scorer":
88 $this->view = self::VIEW_SCORER;
89 break;
90 case "10":
91 case "tutor":
92 $this->view = self::VIEW_TUTOR;
93 break;
94 }
95 }
96
97 public function getView(): ?string
98 {
99 return $this->view;
100 }
101
102 public function setIdent(string $a_ident): void
103 {
104 $this->ident = $a_ident;
105 }
106
107 public function getIdent(): ?string
108 {
109 return $this->ident;
110 }
111
112 public function setTitle(string $a_title): void
113 {
114 $this->title = $a_title;
115 }
116
117 public function getTitle(): ?string
118 {
119 return $this->title;
120 }
121
122 public function addFlowMat(ilQTIFlowmat $a_flow_mat): void
123 {
124 $this->flow_mat[] = $a_flow_mat;
125 }
126
127 public function addMaterial(ilQTIMaterial $a_material): void
128 {
129 $this->material[] = $a_material;
130 }
131}
addFlowMat(ilQTIFlowmat $a_flow_mat)
addMaterial(ilQTIMaterial $a_material)