ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider Class Reference
+ Inheritance diagram for ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider:
+ Collaboration diagram for ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider:

Public Member Functions

 __construct (protected Provider $provider, protected SerializerInterface $serializer, protected IdentificationMap $map)
 CoreIdentificationProvider constructor. More...
 
 fromSerializedString (string $serialized_string)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Identification\IdentificationProviderInterface
 identifier (string $identifier_string)
 
 fromSerializedString (string $serialized_string)
 

Protected Attributes

string $class_name = ''
 

Static Protected Attributes

static array $instances = []
 

Detailed Description

Definition at line 31 of file AbstractIdentificationProvider.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider::__construct ( protected Provider  $provider,
protected SerializerInterface  $serializer,
protected IdentificationMap  $map 
)

CoreIdentificationProvider constructor.

Parameters
Provider$provider
SerializerInterface$serializer
IdentificationMap$map

Definition at line 42 of file AbstractIdentificationProvider.php.

43 {
44 $this->class_name = $this->provider::class;
45 }

Member Function Documentation

◆ fromSerializedString()

ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider::fromSerializedString ( string  $serialized_string)
Parameters
string$serialized_string
Returns
IdentificationInterface

@noinspection PhpParamsInspection

Implements ILIAS\GlobalScreen\Identification\IdentificationProviderInterface.

Definition at line 51 of file AbstractIdentificationProvider.php.

51 : IdentificationInterface
52 {
53 if ($this->map->isInMap($serialized_string)) {
54 return $this->map->getFromMap($serialized_string);
55 }
57 $identification = $this->serializer->unserialize($serialized_string);
58 $this->map->addToMap($identification);
59
60 return $identification;
61 }

Field Documentation

◆ $class_name

string ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider::$class_name = ''
protected

Definition at line 33 of file AbstractIdentificationProvider.php.

◆ $instances

array ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider::$instances = []
staticprotected

Definition at line 34 of file AbstractIdentificationProvider.php.


The documentation for this class was generated from the following file: