ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilQTIObjectives.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
32 public array $materials = [];
33 public string $view = "All";
34
35 public function addMaterial(ilQTIMaterial $a_material): void
36 {
37 $this->materials[] = $a_material;
38 }
39
40 public function setView(string $a_view): void
41 {
42 switch ($a_view) {
43 case "Administrator":
44 case "AdminAuthority":
45 case "Assessor":
46 case "Author":
47 case "Candidate":
48 case "InvigilatorProctor":
49 case "Psychometrician":
50 case "Scorer":
51 case "Tutor":
52 $this->view = $a_view;
53 break;
54 default:
55 $this->view = "All";
56 break;
57 }
58 }
59
60 public function getView(): string
61 {
62 return $this->view;
63 }
64}
setView(string $a_view)
addMaterial(ilQTIMaterial $a_material)