ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilQTIRespcondition.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
30 {
31  public const CONTINUE_YES = "1";
32  public const CONTINUE_NO = "2";
33 
34  public ?string $continue = null;
35  public ?string $title = null;
36  public ?string $comment = null;
39  public array $setvar = [];
41  public array $displayfeedback = [];
42 
43  public function setContinue(string $a_continue): void
44  {
45  switch (strtolower($a_continue)) {
46  case "1":
47  case "yes":
48  $this->continue = self::CONTINUE_YES;
49  break;
50  case "2":
51  case "no":
52  $this->continue = self::CONTINUE_NO;
53  break;
54  }
55  }
56 
57  public function getContinue(): ?string
58  {
59  return $this->continue;
60  }
61 
62  public function setTitle(string $a_title): void
63  {
64  $this->title = $a_title;
65  }
66 
67  public function getTitle(): ?string
68  {
69  return $this->title;
70  }
71 
72  public function setComment(string $a_comment): void
73  {
74  $this->comment = $a_comment;
75  }
76 
77  public function getComment(): ?string
78  {
79  return $this->comment;
80  }
81 
82  public function setConditionvar(ilQTIConditionvar $a_conditionvar): void
83  {
84  $this->conditionvar = $a_conditionvar;
85  }
86 
87  public function getConditionvar(): ?ilQTIConditionvar
88  {
89  return $this->conditionvar;
90  }
91 
92  public function addSetvar(ilQTISetvar $a_setvar): void
93  {
94  $this->setvar[] = $a_setvar;
95  }
96 
97  public function addDisplayfeedback(ilQTIDisplayfeedback $a_displayfeedback): void
98  {
99  $this->displayfeedback[] = $a_displayfeedback;
100  }
101 }
setComment(string $a_comment)
addDisplayfeedback(ilQTIDisplayfeedback $a_displayfeedback)
addSetvar(ilQTISetvar $a_setvar)
setConditionvar(ilQTIConditionvar $a_conditionvar)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ilQTIConditionvar $conditionvar
setContinue(string $a_continue)
comment()
description: > Example for rendring a comment glyph.
Definition: comment.php:41