ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
ViewConfiguration.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Questions\Presentation\Definitions
;
22
23
class
ViewConfiguration
24
{
25
public
function
__construct
(
26
private
bool
$interactive,
27
private
readonly
bool
$show_marks,
28
private
bool
$show_best_response,
29
private
readonly
bool
$show_feedback
30
) {
31
}
32
33
public
function
isInteractive
(): bool
34
{
35
return
$this->interactive;
36
}
37
38
public
function
showMarks
(): bool
39
{
40
return
$this->show_marks;
41
}
42
43
public
function
showBestResponse
(): bool
44
{
45
return
$this->show_best_response;
46
}
47
48
public
function
withShowBestResponse
(): self
49
{
50
$clone = clone $this;
51
$clone->interactive =
false
;
52
$clone->show_best_response =
true
;
53
return
$clone;
54
}
55
56
public
function
showFeedback
(): bool
57
{
58
return
$this->show_feedback;
59
}
60
61
public
function
getViewMode
(): ViewMode
62
{
63
return
$this->view_mode;
64
}
65
}
ILIAS\Questions\Presentation\Definitions\ViewConfiguration
Definition:
ViewConfiguration.php:24
ILIAS\Questions\Presentation\Definitions\ViewConfiguration\getViewMode
getViewMode()
Definition:
ViewConfiguration.php:61
ILIAS\Questions\Presentation\Definitions\ViewConfiguration\isInteractive
isInteractive()
Definition:
ViewConfiguration.php:33
ILIAS\Questions\Presentation\Definitions\ViewConfiguration\__construct
__construct(private bool $interactive, private readonly bool $show_marks, private bool $show_best_response, private readonly bool $show_feedback)
Definition:
ViewConfiguration.php:25
ILIAS\Questions\Presentation\Definitions\ViewConfiguration\showBestResponse
showBestResponse()
Definition:
ViewConfiguration.php:43
ILIAS\Questions\Presentation\Definitions\ViewConfiguration\withShowBestResponse
withShowBestResponse()
Definition:
ViewConfiguration.php:48
ILIAS\Questions\Presentation\Definitions\ViewConfiguration\showFeedback
showFeedback()
Definition:
ViewConfiguration.php:56
ILIAS\Questions\Presentation\Definitions\ViewConfiguration\showMarks
showMarks()
Definition:
ViewConfiguration.php:38
ILIAS\Questions\Presentation\Definitions
Definition:
Actor.php:21
components
ILIAS
Questions
src
Presentation
Definitions
ViewConfiguration.php
Generated on Wed Nov 11 2026 23:08:37 for ILIAS by
1.9.4 (using
Doxyfile
)