ILIAS  release_8 Revision v8.24
ILIAS\GlobalScreen\Identification\NullIdentification Class Reference

Class NullIdentification. More...

+ Inheritance diagram for ILIAS\GlobalScreen\Identification\NullIdentification:
+ Collaboration diagram for ILIAS\GlobalScreen\Identification\NullIdentification:

Public Member Functions

 __construct (IdentificationInterface $wrapped_identification=null)
 NullIdentification constructor. More...
 
 serialize ()
 @inheritDoc More...
 
 unserialize ($serialized)
 @inheritDoc More...
 
 getClassName ()
 @inheritDoc More...
 
 getInternalIdentifier ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 @inheritDoc More...
 
 __serialize ()
 
 __unserialize (array $data)
 
 getClassName ()
 
 getInternalIdentifier ()
 
 getProviderNameForPresentation ()
 
 __serialize ()
 
 __unserialize (array $data)
 

Protected Attributes

IdentificationInterface $wrapped_identification = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Identification\NullIdentification::__construct ( IdentificationInterface  $wrapped_identification = null)

NullIdentification constructor.

Parameters
IdentificationInterface$wrapped_identification

Definition at line 35 of file NullIdentification.php.

36 {
37 $this->wrapped_identification = $wrapped_identification;
38 }

References ILIAS\GlobalScreen\Identification\NullIdentification\$wrapped_identification.

Member Function Documentation

◆ __serialize()

ILIAS\GlobalScreen\Identification\NullIdentification::__serialize ( )
Returns
array{data: string|null}

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 99 of file NullIdentification.php.

99 : array
100 {
101 return ['data' => $this->serialize()];
102 }

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

+ Here is the call graph for this function:

◆ __unserialize()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 104 of file NullIdentification.php.

104 : void
105 {
106 $this->unserialize($data['data']);
107 }

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

+ Here is the call graph for this function:

◆ getClassName()

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

@inheritDoc

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 63 of file NullIdentification.php.

63 : string
64 {
65 if ($this->wrapped_identification !== null) {
66 return $this->wrapped_identification->getClassName();
67 }
68
69 return "Null";
70 }

◆ getInternalIdentifier()

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

@inheritDoc

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 75 of file NullIdentification.php.

75 : string
76 {
77 if ($this->wrapped_identification !== null) {
78 return $this->wrapped_identification->getInternalIdentifier();
79 }
80
81 return "Null";
82 }

◆ getProviderNameForPresentation()

ILIAS\GlobalScreen\Identification\NullIdentification::getProviderNameForPresentation ( )

@inheritDoc

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 87 of file NullIdentification.php.

87 : string
88 {
89 if ($this->wrapped_identification !== null) {
90 return $this->wrapped_identification->getProviderNameForPresentation();
91 }
92
93 return "Null";
94 }

◆ serialize()

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

@inheritDoc

Definition at line 43 of file NullIdentification.php.

44 {
45 if ($this->wrapped_identification !== null) {
46 return $this->wrapped_identification->serialize();
47 }
48
49 return "";
50 }

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

+ Here is the caller graph for this function:

◆ unserialize()

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

@inheritDoc

Definition at line 55 of file NullIdentification.php.

55 : void
56 {
57 // noting to do
58 }

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

+ Here is the caller graph for this function:

Field Documentation

◆ $wrapped_identification

IdentificationInterface ILIAS\GlobalScreen\Identification\NullIdentification::$wrapped_identification = null
protected

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