ILIAS  release_7 Revision v7.30-3-g800a261c036
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

 $map
 
 $provider
 
 $serializer
 
 $class_name = ''
 

Static Protected Attributes

static $instances = []
 

Detailed Description

Definition at line 30 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

PhpParamsInspection

Implements ILIAS\GlobalScreen\Identification\IdentificationProviderInterface.

Definition at line 72 of file AbstractIdentificationProvider.php.

72  : IdentificationInterface
73  {
74  if ($this->map->isInMap($serialized_string)) {
75  return $this->map->getFromMap($serialized_string);
76  }
78  $identification = $this->serializer->unserialize($serialized_string);
79  $this->map->addToMap($identification);
80 
81  return $identification;
82  }

Field Documentation

◆ $class_name

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

Definition at line 48 of file AbstractIdentificationProvider.php.

◆ $instances

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

Definition at line 52 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: