ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Settings.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Settings
24 {
25  public function __construct(
26  private int $test_obj_id,
27  private bool $show_hidden_questions = false,
28  private bool $show_optional_questions = false,
29  private bool $show_hints = false,
30  private bool $show_best_solution = true,
31  private bool $show_feedback = true,
32  private bool $question_text_only = false,
33  private bool $show_recapitulation = false
34  ) {
35  }
36 
37  public function getTestObjId(): int
38  {
39  $this->test_obj_id;
40  }
41 
42  public function getShowHiddenQuestions(): bool
43  {
44  return $this->show_hidden_questions;
45  }
46 
47  public function getShowOptionalQuestions(): bool
48  {
49  return $this->show_optional_questions;
50  }
51 
52  public function getShowHints(): bool
53  {
54  return $this->show_hints;
55  }
56 
57  public function getShowBestSolution(): bool
58  {
59  return $this->show_best_solution;
60  }
61 
62  public function getShowFeedback(): bool
63  {
64  return $this->show_feedback;
65  }
66 
67  public function getQuestionTextOnly(): bool
68  {
69  return $this->question_text_only;
70  }
71 
72  public function getShowRecapitulation(): bool
73  {
74  return $this->show_recapitulation;
75  }
76 }
__construct(private int $test_obj_id, private bool $show_hidden_questions=false, private bool $show_optional_questions=false, private bool $show_hints=false, private bool $show_best_solution=true, private bool $show_feedback=true, private bool $question_text_only=false, private bool $show_recapitulation=false)
Definition: Settings.php:25