ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
TestSettings.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Test\Settings
;
22
23
use
ILIAS\Test\Logging\AdditionalInformationGenerator
;
24
25
use
ILIAS\UI\Component\Input\Field\Factory
as FieldFactory;
26
use
ILIAS\UI\Component\Input\Container\Form\FormInput
;
27
use
ILIAS\Refinery\Factory
as
Refinery
;
28
29
abstract
class
TestSettings
30
{
31
protected
int
$test_id
;
32
33
public
function
__construct
(
int
$test_id)
34
{
35
$this->test_id =
$test_id
;
36
}
37
38
public
function
getTestId
():
int
39
{
40
return
$this->test_id
;
41
}
42
public
function
withTestId
(
int
$test_id): self
43
{
44
$clone = clone $this;
45
$clone->test_id =
$test_id
;
46
return
$clone;
47
}
48
49
abstract
public
function
toForm
(
50
\
ilLanguage
$lng
,
51
FieldFactory
$f
,
52
Refinery
$refinery
,
53
array $environment = null
54
):
FormInput
| array;
55
56
abstract
public
function
toStorage
(): array;
57
58
abstract
public
function
toLog
(
AdditionalInformationGenerator
$additional_info): array;
59
}
ILIAS\UI\Component\Input\Field\Factory
This is what a factory for input fields looks like.
Definition:
Factory.php:28
ILIAS\UI\examples\Layout\Page\Standard\$refinery
$refinery
Definition:
ui.php:121
ILIAS\Test\Settings\TestSettings
Definition:
TestSettings.php:29
ILIAS\Test\Settings\TestSettings\withTestId
withTestId(int $test_id)
Definition:
TestSettings.php:42
ilLanguage
FormInput
ILIAS\Test\Settings
ILIAS\Test\Settings\TestSettings\$test_id
int $test_id
Definition:
TestSettings.php:31
Factory
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
ILIAS\Test\Settings\TestSettings\getTestId
getTestId()
Definition:
TestSettings.php:38
ILIAS\Test\Settings\TestSettings\__construct
__construct(int $test_id)
Definition:
TestSettings.php:33
$lng
global $lng
Definition:
privfeed.php:32
AdditionalInformationGenerator
ILIAS\UI\Component\Input\Container\Form\FormInput
This describes inputs that can be used in forms.
Definition:
FormInput.php:31
ILIAS\Test\Settings\TestSettings\toLog
toLog(AdditionalInformationGenerator $additional_info)
ILIAS\Test\Settings\TestSettings\toStorage
toStorage()
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Test\Settings\TestSettings\toForm
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
ILIAS\Test\Logging\AdditionalInformationGenerator
Definition:
AdditionalInformationGenerator.php:28
components
ILIAS
Test
src
Settings
TestSettings.php
Generated on Wed Sep 10 2025 15:16:35 for ILIAS by
1.8.13 (using
Doxyfile
)