ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AbstractIdentification.php
Go to the documentation of this file.
1
<?
php
namespace
ILIAS\GlobalScreen\Identification
;
2
3
use
ILIAS\GlobalScreen\Identification\Serializer\SerializerInterface
;
4
use
ILIAS\GlobalScreen\Provider\Provider
;
5
11
abstract
class
AbstractIdentification
implements
IdentificationInterface
12
{
13
17
protected
$provider_presentation_name
;
21
protected
$serializer
;
25
protected
$internal_identifier
=
''
;
29
protected
$classname
=
''
;
30
31
40
public
function
__construct
(
string
$internal_identifier
,
string
$classname
,
SerializerInterface
$serializer
,
string
$provider_presentation_name
)
41
{
42
$this->provider_presentation_name =
$provider_presentation_name
;
43
$this->serializer =
$serializer
;
44
$this->internal_identifier =
$internal_identifier
;
45
$this->classname =
$classname
;
46
}
47
48
52
public
function
serialize
()
53
{
54
return
$this->serializer->serialize($this);
55
}
56
57
61
public
function
unserialize
($serialized)
62
{
63
throw
new \LogicException(
"Please use the identification factory to unserialize"
);
64
}
65
66
70
public
function
getClassName
() : string
71
{
72
return
$this->classname
;
73
}
74
75
79
public
function
getInternalIdentifier
() : string
80
{
81
return
$this->internal_identifier
;
82
}
83
84
88
public
function
getProviderNameForPresentation
() :
string
89
{
90
global
$DIC
;
94
$provider
=
new
$this->classname($DIC);
95
96
return
$provider
->getProviderNameForPresentation();
97
}
98
}
ILIAS\GlobalScreen\Identification\AbstractIdentification\getClassName
getClassName()
Definition:
AbstractIdentification.php:70
$DIC
global $DIC
Definition:
saml.php:7
ILIAS\GlobalScreen\Identification\AbstractIdentification\$serializer
$serializer
Definition:
AbstractIdentification.php:21
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:8
ILIAS\GlobalScreen\Identification\AbstractIdentification\unserialize
unserialize($serialized)
Definition:
AbstractIdentification.php:61
ILIAS\GlobalScreen\Identification\AbstractIdentification\getInternalIdentifier
getInternalIdentifier()
Definition:
AbstractIdentification.php:79
ILIAS\GlobalScreen\Identification\AbstractIdentification\$classname
$classname
Definition:
AbstractIdentification.php:29
ILIAS\GlobalScreen\Identification\AbstractIdentification\$internal_identifier
$internal_identifier
Definition:
AbstractIdentification.php:25
ILIAS\GlobalScreen\Identification\AbstractIdentification
Definition:
AbstractIdentification.php:11
ILIAS\GlobalScreen\Identification\AbstractIdentification\$provider_presentation_name
$provider_presentation_name
Definition:
AbstractIdentification.php:17
ILIAS\GlobalScreen\Identification\Serializer\SerializerInterface
Interface SerializerInterface.
Definition:
SerializerInterface.php:12
ILIAS\GlobalScreen\Identification\IdentificationInterface\getProviderNameForPresentation
getProviderNameForPresentation()
SerializerInterface
PHPMailer\PHPMailer\$provider
$provider
Definition:
get_oauth_token.php:92
ILIAS\GlobalScreen\Identification\AbstractIdentification\__construct
__construct(string $internal_identifier, string $classname, SerializerInterface $serializer, string $provider_presentation_name)
CoreIdentification constructor.
Definition:
AbstractIdentification.php:40
php
ILIAS\GlobalScreen\Identification\AbstractIdentification\serialize
serialize()
Definition:
AbstractIdentification.php:52
Provider
ILIAS\GlobalScreen\Identification
Definition:
AbstractIdentification.php:1
src
GlobalScreen
Identification
AbstractIdentification.php
Generated on Thu Feb 27 2025 19:02:10 for ILIAS by
1.8.13 (using
Doxyfile
)