ILIAS  release_8 Revision v8.24
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 ()
 @inheritDoc More...
 
 unserialize ($serialized)
 @inheritDoc More...
 
 getClassName ()
 @inheritDoc More...
 
 getInternalIdentifier ()
 @inheritDoc More...
 
 __serialize ()
 
 __unserialize (array $data)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Identification\IdentificationInterface
 getClassName ()
 
 getInternalIdentifier ()
 
 getProviderNameForPresentation ()
 
 __serialize ()
 
 __unserialize (array $data)
 

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.

102 : array
103 {
104 return ['data' => $this->serialize()];
105 }

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

+ 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.

107 : void
108 {
109 $this->unserialize($data['data']);
110 }

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

+ 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 ( )

@inheritDoc

Definition at line 56 of file AbstractIdentification.php.

57 {
58 return $this->serializer->serialize($this);
59 }

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

+ Here is the caller graph for this function:

◆ unserialize()

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

@inheritDoc

Definition at line 64 of file AbstractIdentification.php.

65 {
66 throw new LogicException("Please use the identification factory to unserialize");
67 }

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

+ Here is the caller graph for this function:

Field Documentation

◆ $classname

◆ $internal_identifier

◆ $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: