ILIAS  release_8 Revision v8.24
AbstractIdentificationProvider.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
25
31{
34
36 protected string $class_name = '';
37 protected static array $instances = [];
38
46 {
47 $this->map = $map;
48 $this->provider = $provider;
49 $this->class_name = get_class($provider);
50 $this->serializer = $serializer;
51 }
52
57 public function fromSerializedString(string $serialized_string): IdentificationInterface
58 {
59 if ($this->map->isInMap($serialized_string)) {
60 return $this->map->getFromMap($serialized_string);
61 }
63 $identification = $this->serializer->unserialize($serialized_string);
64 $this->map->addToMap($identification);
65
66 return $identification;
67 }
68}
__construct(Provider $provider, SerializerInterface $serializer, IdentificationMap $map)
CoreIdentificationProvider constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...