ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AbstractIdentificationProvider.php
Go to the documentation of this file.
1
<?
php
namespace
ILIAS\GlobalScreen\Identification
;
2
3
use
ILIAS\GlobalScreen\Identification\Map\IdentificationMap
;
4
use
ILIAS\GlobalScreen\Identification\Serializer\SerializerInterface
;
5
use
ILIAS\GlobalScreen\Provider\Provider
;
6
12
abstract
class
AbstractIdentificationProvider
implements
IdentificationProviderInterface
13
{
14
18
protected
$map
;
22
protected
$provider
;
26
protected
$serializer
;
30
protected
$class_name
=
''
;
34
protected
static
$instances
= [];
35
36
44
public
function
__construct
(
Provider
$provider
,
SerializerInterface
$serializer
,
IdentificationMap
$map
)
45
{
46
$this->map =
$map
;
47
$this->provider =
$provider
;
48
$this->class_name = get_class($provider);
49
$this->serializer =
$serializer
;
50
;
51
}
52
53
59
public
function
fromSerializedString
(
string
$serialized_string) :
IdentificationInterface
60
{
61
if
($this->map->isInMap($serialized_string)) {
62
return
$this->map->getFromMap($serialized_string);
63
}
64
$identification = $this->serializer->unserialize($serialized_string);
65
$this->map->addToMap($identification);
66
67
return
$identification;
68
}
69
}
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider\$serializer
$serializer
Definition:
AbstractIdentificationProvider.php:26
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider\fromSerializedString
fromSerializedString(string $serialized_string)
Definition:
AbstractIdentificationProvider.php:59
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:8
ILIAS\GlobalScreen\Provider\Provider
Interface Provider.
Definition:
Provider.php:8
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider\$instances
static $instances
Definition:
AbstractIdentificationProvider.php:34
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider\$map
$map
Definition:
AbstractIdentificationProvider.php:18
ILIAS\GlobalScreen\Identification\Map\IdentificationMap
Class IdentificationMap.
Definition:
IdentificationMap.php:10
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider\$provider
$provider
Definition:
AbstractIdentificationProvider.php:22
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider\__construct
__construct(Provider $provider, SerializerInterface $serializer, IdentificationMap $map)
CoreIdentificationProvider constructor.
Definition:
AbstractIdentificationProvider.php:44
ILIAS\GlobalScreen\Identification\Serializer\SerializerInterface
Interface SerializerInterface.
Definition:
SerializerInterface.php:12
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider\$class_name
$class_name
Definition:
AbstractIdentificationProvider.php:30
SerializerInterface
ILIAS\GlobalScreen\Identification\IdentificationProviderInterface
Class IdentificationProviderInterface.
Definition:
IdentificationProviderInterface.php:8
php
IdentificationMap
Provider
ILIAS\GlobalScreen\Identification
Definition:
AbstractIdentification.php:1
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
Definition:
AbstractIdentificationProvider.php:12
src
GlobalScreen
Identification
AbstractIdentificationProvider.php
Generated on Thu Jan 16 2025 19:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)