ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilQTIObjectives.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
addMaterial(ilQTIMaterial $a_material)
setView(string $a_view)