ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\GlobalScreen\Identification\AbstractIdentification Class Reference
+ Inheritance diagram for ILIAS\GlobalScreen\Identification\AbstractIdentification:
+ Collaboration diagram for ILIAS\GlobalScreen\Identification\AbstractIdentification:

Public Member Functions

 __construct (protected string $internal_identifier, protected string $classname, protected SerializerInterface $serializer, protected 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 ()
 

Detailed Description

Definition at line 30 of file AbstractIdentification.php.

Constructor & Destructor Documentation

◆ __construct()

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

CoreIdentification constructor.

Parameters
string$internal_identifier
string$classname
SerializerInterface$serializer
string$provider_presentation_name

Definition at line 39 of file AbstractIdentification.php.

40  {
41  }

Member Function Documentation

◆ __serialize()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 89 of file AbstractIdentification.php.

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

89  : array
90  {
91  return ['data' => $this->serialize()];
92  }
+ Here is the call graph for this function:

◆ __unserialize()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 94 of file AbstractIdentification.php.

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

94  : void
95  {
96  $this->unserialize($data['data']);
97  }
+ Here is the call graph for this function:

◆ getClassName()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 62 of file AbstractIdentification.php.

62  : string
63  {
64  return $this->classname;
65  }

◆ getInternalIdentifier()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 70 of file AbstractIdentification.php.

References $DIC, $provider, and ILIAS\GlobalScreen\Identification\IdentificationInterface\getProviderNameForPresentation().

70  : string
71  {
72  return $this->internal_identifier;
73  }
+ Here is the call graph for this function:

◆ serialize()

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

Definition at line 46 of file AbstractIdentification.php.

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

47  {
48  return $this->serializer->serialize($this);
49  }
+ Here is the caller graph for this function:

◆ unserialize()

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

Definition at line 54 of file AbstractIdentification.php.

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

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

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