ILIAS  release_8 Revision v8.23
ILIAS\GlobalScreen\Identification\AbstractIdentification Class Reference
+ Inheritance diagram for ILIAS\GlobalScreen\Identification\AbstractIdentification:
+ Collaboration diagram for ILIAS\GlobalScreen\Identification\AbstractIdentification:

Public Member Functions

 __construct (string $internal_identifier, string $classname, SerializerInterface $serializer, string $provider_presentation_name)
 CoreIdentification constructor. More...
 
 serialize ()
 
 unserialize ($serialized)
 
 getClassName ()
 
 getInternalIdentifier ()
 
 __serialize ()
 
 __unserialize (array $data)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Identification\IdentificationInterface
 getProviderNameForPresentation ()
 

Protected Attributes

SerializerInterface $serializer
 
string $provider_presentation_name
 
string $internal_identifier = ''
 
string $classname = ''
 

Detailed Description

Definition at line 31 of file AbstractIdentification.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Identification\AbstractIdentification::__construct ( string  $internal_identifier,
string  $classname,
SerializerInterface  $serializer,
string  $provider_presentation_name 
)

Member Function Documentation

◆ __serialize()

ILIAS\GlobalScreen\Identification\AbstractIdentification::__serialize ( )
Returns
array{data: string|null}

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 102 of file AbstractIdentification.php.

References ILIAS\GlobalScreen\Identification\AbstractIdentification\serialize().

102  : array
103  {
104  return ['data' => $this->serialize()];
105  }
+ Here is the call graph for this function:

◆ __unserialize()

ILIAS\GlobalScreen\Identification\AbstractIdentification::__unserialize ( array  $data)

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 107 of file AbstractIdentification.php.

References ILIAS\GlobalScreen\Identification\AbstractIdentification\unserialize().

107  : void
108  {
109  $this->unserialize($data['data']);
110  }
+ Here is the call graph for this function:

◆ getClassName()

ILIAS\GlobalScreen\Identification\AbstractIdentification::getClassName ( )

◆ getInternalIdentifier()

ILIAS\GlobalScreen\Identification\AbstractIdentification::getInternalIdentifier ( )

◆ serialize()

ILIAS\GlobalScreen\Identification\AbstractIdentification::serialize ( )

Definition at line 56 of file AbstractIdentification.php.

Referenced by ILIAS\GlobalScreen\Identification\AbstractIdentification\__serialize().

57  {
58  return $this->serializer->serialize($this);
59  }
+ Here is the caller graph for this function:

◆ unserialize()

ILIAS\GlobalScreen\Identification\AbstractIdentification::unserialize (   $serialized)

Definition at line 64 of file AbstractIdentification.php.

Referenced by ILIAS\GlobalScreen\Identification\AbstractIdentification\__unserialize().

65  {
66  throw new LogicException("Please use the identification factory to unserialize");
67  }
+ Here is the caller graph for this function:

Field Documentation

◆ $classname

string ILIAS\GlobalScreen\Identification\AbstractIdentification::$classname = ''
protected

◆ $internal_identifier

string ILIAS\GlobalScreen\Identification\AbstractIdentification::$internal_identifier = ''
protected

◆ $provider_presentation_name

string ILIAS\GlobalScreen\Identification\AbstractIdentification::$provider_presentation_name
protected

◆ $serializer

SerializerInterface ILIAS\GlobalScreen\Identification\AbstractIdentification::$serializer
protected

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