ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
assSuggestedSolutionLink.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
20
namespace
ILIAS\TA\Questions
;
21
27
class
assSuggestedSolutionLink
extends
assQuestionSuggestedSolution
28
{
29
protected
string
$type
;
30
protected
string
$internal_link
;
31
32
public
function
__construct
(
33
int
$id
,
34
int
$question_id
,
35
int
$subquestion_index
,
36
string
$import_id
,
37
\
DateTimeImmutable
$last_update
,
38
string
$type,
39
string
$internal_link
40
) {
41
parent::__construct
($id, $question_id, $subquestion_index, $import_id, $last_update);
42
$this->type =
$type
;
43
$this->internal_link =
$internal_link
;
44
}
45
46
public
function
getType
(): string
47
{
48
return
$this->type
;
49
}
50
51
public
function
getStorableValue
(): string
52
{
53
return
$this->
getInternalLink
();
54
}
55
56
public
function
getInternalLink
(): string
57
{
58
return
$this->internal_link
;
59
}
60
public
function
withInternalLink
(
string
$internal_link): static
61
{
62
$clone = clone $this;
63
$clone->internal_link =
$internal_link
;
64
return
$clone;
65
}
66
}
ILIAS\TA\Questions\assSuggestedSolutionLink\getStorableValue
getStorableValue()
Definition:
assSuggestedSolutionLink.php:51
DateTimeImmutable
ILIAS\TA\Questions\assSuggestedSolutionLink\getType
getType()
Definition:
assSuggestedSolutionLink.php:46
ILIAS\TA\Questions\assSuggestedSolutionLink\getInternalLink
getInternalLink()
Definition:
assSuggestedSolutionLink.php:56
ILIAS\TA\Questions\assQuestionSuggestedSolution
a suggested solution
Definition:
assQuestionSuggestedSolution.php:27
ILIAS\TA\Questions\assQuestionSuggestedSolution\$import_id
string $import_id
Definition:
assQuestionSuggestedSolution.php:46
ILIAS\TA\Questions\assSuggestedSolutionLink\withInternalLink
withInternalLink(string $internal_link)
Definition:
assSuggestedSolutionLink.php:60
ILIAS\TA\Questions\assSuggestedSolutionLink\$type
string $type
Definition:
assSuggestedSolutionLink.php:29
ILIAS\TA\Questions\assQuestionSuggestedSolution\$question_id
int $question_id
Definition:
assQuestionSuggestedSolution.php:44
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
ILIAS\TA\Questions\assSuggestedSolutionLink
a suggested solution that links to some other object/place
Definition:
assSuggestedSolutionLink.php:27
ILIAS\TA\Questions\assQuestionSuggestedSolution\$last_update
DateTimeImmutable $last_update
Definition:
assQuestionSuggestedSolution.php:47
ILIAS\TA\Questions\assQuestionSuggestedSolution\$id
int $id
Definition:
assQuestionSuggestedSolution.php:43
ILIAS\TA\Questions\assSuggestedSolutionLink\__construct
__construct(int $id, int $question_id, int $subquestion_index, string $import_id, \DateTimeImmutable $last_update, string $type, string $internal_link)
Definition:
assSuggestedSolutionLink.php:32
ILIAS\TA\Questions\assQuestionSuggestedSolution\$subquestion_index
int $subquestion_index
Definition:
assQuestionSuggestedSolution.php:45
ILIAS\TA\Questions\assSuggestedSolutionLink\$internal_link
string $internal_link
Definition:
assSuggestedSolutionLink.php:30
ILIAS\TA\Questions
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Modules
TestQuestionPool
classes
questions
SuggestedSolutions
assSuggestedSolutionLink.php
Generated on Wed Sep 10 2025 14:11:11 for ILIAS by
1.8.13 (using
Doxyfile
)