ILIAS  release_8 Revision v8.24
TestSettings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
23use ILIAS\Refinery\Factory as Refinery;
24
25abstract 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(
47 FieldFactory $f,
48 Refinery $refinery,
49 array $environment = null
50 ): FormInput;
51
52 abstract public function toStorage(): array;
53}
Builds data types.
Definition: Factory.php:21
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, array $environment=null)
__construct(int $test_id)
withTestId(int $test_id)
language handling
This describes inputs that can be used in forms.
Definition: FormInput.php:32
This is what a factory for input fields looks like.
Definition: Factory.php:29
Refinery Factory $refinery
$lng