ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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:22
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 Fri Apr 4 2025 23:03:13 for ILIAS by
1.8.13 (using
Doxyfile
)