ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TestSettings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Test\Settings;
22
24
27use ILIAS\Refinery\Factory as Refinery;
28
29abstract 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(
51 FieldFactory $f,
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}
Builds data types.
Definition: Factory.php:36
toLog(AdditionalInformationGenerator $additional_info)
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
language handling
This describes inputs that can be used in forms.
Definition: FormInput.php:33
This is what a factory for input fields looks like.
Definition: Factory.php:31
global $lng
Definition: privfeed.php:31