ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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

 $map
 
 $provider
 
 $serializer
 
 $class_name = ''
 

Static Protected Attributes

static $instances = []
 

Detailed Description

Definition at line 12 of file AbstractIdentificationProvider.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ fromSerializedString()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationProviderInterface.

Definition at line 59 of file AbstractIdentificationProvider.php.

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

Field Documentation

◆ $class_name

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

Definition at line 30 of file AbstractIdentificationProvider.php.

◆ $instances

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

Definition at line 34 of file AbstractIdentificationProvider.php.

◆ $map

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

◆ $provider

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

◆ $serializer

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

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