ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
IdentificationMap.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Identification\Map
;
2
3
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
4
10
class
IdentificationMap
11
{
12
16
protected
static
$map
= [];
17
18
22
public
function
addToMap
(
IdentificationInterface
$identification)
23
{
24
self::$map[$identification->serialize()] = $identification;
25
}
26
27
33
public
function
isInMap
(
string
$serialized) : bool
34
{
35
return
isset(self::$map[$serialized]);
36
}
37
38
44
public
function
getFromMap
(
string
$serialized) :
IdentificationInterface
45
{
46
return
self::$map[$serialized];
47
}
48
}
ILIAS\GlobalScreen\Identification\Map
Definition:
IdentificationMap.php:1
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:8
ILIAS\GlobalScreen\Identification\Map\IdentificationMap
Class IdentificationMap.
Definition:
IdentificationMap.php:10
IdentificationInterface
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\$map
static $map
Definition:
IdentificationMap.php:16
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\getFromMap
getFromMap(string $serialized)
Definition:
IdentificationMap.php:44
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\addToMap
addToMap(IdentificationInterface $identification)
Definition:
IdentificationMap.php:22
ILIAS\GlobalScreen\Identification\Map\IdentificationMap\isInMap
isInMap(string $serialized)
Definition:
IdentificationMap.php:33
src
GlobalScreen
Identification
Map
IdentificationMap.php
Generated on Mon Sep 1 2025 20:01:41 for ILIAS by
1.8.13 (using
Doxyfile
)