ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
IdentificationMap.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Identification\Map
;
21
22
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
23
28
class
IdentificationMap
29
{
30
protected
static
array
$map
= [];
31
32
public
function
addToMap
(
IdentificationInterface
$identification): void
33
{
34
self::$map[$identification->serialize()] = $identification;
35
}
36
37
public
function
isInMap
(
string
$serialized): bool
38
{
39
return
isset(self::$map[$serialized]);
40
}
41
42
public
function
getFromMap
(
string
$serialized):
IdentificationInterface
43
{
44
return
self::$map[$serialized];
45
}
46
}
ILIAS\GlobalScreen\Identification\Map
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
IdentificationMap.php:20
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Identification\Map\IdentificationMap
Class IdentificationMap.
Definition:
IdentificationMap.php:28
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\$map
static array $map
Definition:
IdentificationMap.php:30
IdentificationInterface
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\getFromMap
getFromMap(string $serialized)
Definition:
IdentificationMap.php:42
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\addToMap
addToMap(IdentificationInterface $identification)
Definition:
IdentificationMap.php:32
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\isInMap
isInMap(string $serialized)
Definition:
IdentificationMap.php:37
src
GlobalScreen
Identification
Map
IdentificationMap.php
Generated on Wed Sep 3 2025 22:02:54 for ILIAS by
1.8.13 (using
Doxyfile
)