ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
TestSettings.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\UI\Component\Input\Field\Factory
as
FieldFactory
;
22
use
ILIAS\UI\Component\Input\Container\Form\FormInput
;
23
use
ILIAS\Refinery\Factory
as
Refinery
;
24
25
abstract
class
TestSettings
26
{
27
protected
int
$test_id
;
28
29
public
function
__construct
(
int
$test_id)
30
{
31
$this->test_id =
$test_id
;
32
}
33
34
public
function
getTestId
():
int
35
{
36
return
$this->test_id
;
37
}
38
public
function
withTestId
(
int
$test_id): self
39
{
40
$clone = clone $this;
41
$clone->test_id =
$test_id
;
42
return
$clone;
43
}
44
45
abstract
public
function
toForm
(
46
\
ilLanguage
$lng
,
47
FieldFactory
$f
,
48
Refinery
$refinery
,
49
array $environment = null
50
):
FormInput
;
51
52
abstract
public
function
toStorage
(): array;
53
}
ILIAS\UI\Component\Input\Field\Factory
This is what a factory for input fields looks like.
Definition:
Factory.php:28
ilLanguage
TestSettings\getTestId
getTestId()
Definition:
TestSettings.php:34
Factory
$lng
$lng
Definition:
save_question_post_data.php:24
FormInput
Factory
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
TestSettings\$test_id
int $test_id
Definition:
TestSettings.php:27
TestSettings\toStorage
toStorage()
TestSettings
Definition:
TestSettings.php:25
TestSettings\withTestId
withTestId(int $test_id)
Definition:
TestSettings.php:38
TestSettings\__construct
__construct(int $test_id)
Definition:
TestSettings.php:29
TestSettings\toForm
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
ILIAS\UI\Component\Input\Container\Form\FormInput
This describes inputs that can be used in forms.
Definition:
FormInput.php:31
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Repository\$refinery
Refinery Factory $refinery
Definition:
trait.BaseGUIRequest.php:36
Modules
Test
classes
ScoreReporting
TestSettings.php
Generated on Sun Aug 31 2025 22:01:37 for ILIAS by
1.8.13 (using
Doxyfile
)