ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilQTIAssessmentcontrol.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
31 {
32  public string $hintswitch = "";
33  public string $solutionswitch = "";
34  public string $view = "All";
35  public string $feedbackswitch = "";
36 
37  public function setView(string $a_view): void
38  {
39  switch ($a_view) {
40  case "Administrator":
41  case "AdminAuthority":
42  case "Assessor":
43  case "Author":
44  case "Candidate":
45  case "InvigilatorProctor":
46  case "Psychometrician":
47  case "Scorer":
48  case "Tutor":
49  $this->view = $a_view;
50  break;
51  default:
52  $this->view = "All";
53  break;
54  }
55  }
56 
57  public function getView(): string
58  {
59  return $this->view;
60  }
61 
62  public function setHintswitch(string $a_hintswitch): void
63  {
64  $this->hintswitch = 'No' === $a_hintswitch ? 'No' : 'Yes';
65  }
66 
67  public function getHintswitch(): string
68  {
69  return $this->hintswitch;
70  }
71 
72  public function setSolutionswitch(string $a_solutionswitch): void
73  {
74  $this->solutionswitch = 'No' === $a_solutionswitch ? 'No' : 'Yes';
75  }
76 
77  public function getSolutionswitch(): string
78  {
79  return $this->solutionswitch;
80  }
81 
82  public function setFeedbackswitch(string $a_feedbackswitch): void
83  {
84  $this->feedbackswitch = 'No' === $a_feedbackswitch ? 'No' : 'Yes';
85  }
86 
87  public function getFeedbackswitch(): string
88  {
89  return $this->feedbackswitch;
90  }
91 }
setFeedbackswitch(string $a_feedbackswitch)
setSolutionswitch(string $a_solutionswitch)