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