ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
IdentificationMap.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Identification\Map
;
21
22
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
23
28
class
IdentificationMap
29
{
33
protected
static
$map
= [];
34
35
public
function
addToMap
(
IdentificationInterface
$identification) : void
36
{
37
self::$map[$identification->serialize()] = $identification;
38
}
39
40
public
function
isInMap
(
string
$serialized) : bool
41
{
42
return
isset(self::$map[$serialized]);
43
}
44
45
public
function
getFromMap
(
string
$serialized) :
IdentificationInterface
46
{
47
return
self::$map[$serialized];
48
}
49
}
ILIAS\GlobalScreen\Identification\Map
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
IdentificationInterface
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\$map
static $map
Definition:
IdentificationMap.php:33
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\getFromMap
getFromMap(string $serialized)
Definition:
IdentificationMap.php:45
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\addToMap
addToMap(IdentificationInterface $identification)
Definition:
IdentificationMap.php:35
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\isInMap
isInMap(string $serialized)
Definition:
IdentificationMap.php:40
src
GlobalScreen
Identification
Map
IdentificationMap.php
Generated on Tue Sep 2 2025 21:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)