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