ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
IdentificationMap.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Identification\Map
;
22
23
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
24
29
class
IdentificationMap
30
{
31
protected
static
array
$map
= [];
32
33
public
function
addToMap
(
IdentificationInterface
$identification): void
34
{
35
self::$map[$identification->serialize()] = $identification;
36
}
37
38
public
function
isInMap
(
string
$serialized): bool
39
{
40
return
isset(self::$map[$serialized]);
41
}
42
43
public
function
getFromMap
(
string
$serialized):
IdentificationInterface
44
{
45
return
self::$map[$serialized];
46
}
47
}
ILIAS\GlobalScreen\Identification\Map
Definition:
IdentificationMap.php:21
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Identification\Map\IdentificationMap
Class IdentificationMap.
Definition:
IdentificationMap.php:29
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\$map
static array $map
Definition:
IdentificationMap.php:31
IdentificationInterface
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\getFromMap
getFromMap(string $serialized)
Definition:
IdentificationMap.php:43
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\addToMap
addToMap(IdentificationInterface $identification)
Definition:
IdentificationMap.php:33
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\isInMap
isInMap(string $serialized)
Definition:
IdentificationMap.php:38
components
ILIAS
GlobalScreen
src
Identification
Map
IdentificationMap.php
Generated on Wed Sep 3 2025 23:03:06 for ILIAS by
1.8.13 (using
Doxyfile
)