ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider Class Reference
+ Inheritance diagram for ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider:
+ Collaboration diagram for ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider:

Public Member Functions

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

Protected Attributes

IdentificationMap $map
 
Provider $provider
 
Serializer SerializerInterface $serializer
 
string $class_name = ''
 

Static Protected Attributes

static array $instances = []
 

Detailed Description

Definition at line 30 of file AbstractIdentificationProvider.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ fromSerializedString()

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

PhpParamsInspection

Implements ILIAS\GlobalScreen\Identification\IdentificationProviderInterface.

Definition at line 57 of file AbstractIdentificationProvider.php.

57  : 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  }

Field Documentation

◆ $class_name

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

Definition at line 36 of file AbstractIdentificationProvider.php.

◆ $instances

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

Definition at line 37 of file AbstractIdentificationProvider.php.

◆ $map

IdentificationMap ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider::$map
protected

◆ $provider

Provider ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider::$provider
protected

◆ $serializer

Serializer SerializerInterface ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider::$serializer
protected

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