ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
AbstractIdentification.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Identification
;
22
23
use
ILIAS\GlobalScreen\Identification\Serializer\SerializerInterface
;
24
use
LogicException
;
25
30
abstract
class
AbstractIdentification
implements
IdentificationInterface
31
{
39
public
function
__construct
(
protected
string
$internal_identifier,
protected
string
$classname,
protected
SerializerInterface
$serializer,
protected
string
$provider_presentation_name)
40
{
41
}
42
46
public
function
serialize
()
47
{
48
return
$this->serializer->serialize($this);
49
}
50
54
public
function
unserialize
($serialized)
55
{
56
throw
new
LogicException
(
"Please use the identification factory to unserialize"
);
57
}
58
62
public
function
getClassName
(): string
63
{
64
return
$this->classname;
65
}
66
70
public
function
getInternalIdentifier
(): string
71
{
72
return
$this->internal_identifier;
73
}
74
78
public
function
getProviderNameForPresentation
():
string
79
{
80
global
$DIC
;
84
$provider
=
new
$this->classname($DIC);
85
86
return
$provider
->getProviderNameForPresentation();
87
}
88
89
public
function
__serialize
(): array
90
{
91
return
[
'data'
=> $this->
serialize
()];
92
}
93
94
public
function
__unserialize
(array
$data
): void
95
{
96
$this->
unserialize
($data[
'data'
]);
97
}
98
}
LogicException
$data
$data
Definition:
ltiregistration.php:29
ILIAS\GlobalScreen\Identification\AbstractIdentification\getClassName
getClassName()
Definition:
AbstractIdentification.php:62
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Identification\AbstractIdentification\unserialize
unserialize($serialized)
Definition:
AbstractIdentification.php:54
ILIAS\GlobalScreen\Identification\AbstractIdentification\getInternalIdentifier
getInternalIdentifier()
Definition:
AbstractIdentification.php:70
$provider
$provider
Definition:
ltitoken.php:80
ILIAS\GlobalScreen\Identification\AbstractIdentification
Definition:
AbstractIdentification.php:30
ILIAS\GlobalScreen\Identification\AbstractIdentification\__unserialize
__unserialize(array $data)
Definition:
AbstractIdentification.php:94
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\GlobalScreen\Identification\Serializer\SerializerInterface
Interface SerializerInterface.
Definition:
SerializerInterface.php:31
ILIAS\GlobalScreen\Identification\IdentificationInterface\getProviderNameForPresentation
getProviderNameForPresentation()
SerializerInterface
ILIAS\GlobalScreen\Identification\AbstractIdentification\__serialize
__serialize()
Definition:
AbstractIdentification.php:89
ILIAS\GlobalScreen\Identification\AbstractIdentification\__construct
__construct(protected string $internal_identifier, protected string $classname, protected SerializerInterface $serializer, protected string $provider_presentation_name)
CoreIdentification constructor.
Definition:
AbstractIdentification.php:39
ILIAS\GlobalScreen\Identification\AbstractIdentification\serialize
serialize()
Definition:
AbstractIdentification.php:46
ILIAS\GlobalScreen\Identification
Definition:
AbstractIdentification.php:21
components
ILIAS
GlobalScreen
src
Identification
AbstractIdentification.php
Generated on Sun Aug 31 2025 23:03:01 for ILIAS by
1.8.13 (using
Doxyfile
)