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