ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
SelectionMap.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments
;
22
26
class
SelectionMap
27
{
28
private
readonly ?
string
$default_selection
;
29
33
public
function
__construct
(
34
private
readonly array $conditions = [],
35
?
string
$default_selection =
null
36
) {
37
$this->default_selection = $default_selection ?? key($this->conditions);
38
}
39
43
public
function
choices
(): array
44
{
45
return
$this->conditions;
46
}
47
48
public
function
defaultSelection
(): ?string
49
{
50
return
$this->default_selection
;
51
}
52
}
ILIAS\LegalDocuments\SelectionMap\__construct
__construct(private readonly array $conditions=[], ?string $default_selection=null)
Definition:
SelectionMap.php:33
ILIAS\LegalDocuments
Definition:
Administration.php:21
ILIAS\LegalDocuments\SelectionMap
-covariant A
Definition:
SelectionMap.php:26
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\LegalDocuments\SelectionMap\choices
choices()
Definition:
SelectionMap.php:43
ILIAS\LegalDocuments\SelectionMap\defaultSelection
defaultSelection()
Definition:
SelectionMap.php:48
ILIAS\LegalDocuments\SelectionMap\$default_selection
readonly string $default_selection
Definition:
SelectionMap.php:28
components
ILIAS
LegalDocuments
classes
SelectionMap.php
Generated on Mon Sep 1 2025 23:03:23 for ILIAS by
1.8.13 (using
Doxyfile
)