ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 
 unserialize ($serialized)
 
 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.

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

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

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.

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

99  : array
100  {
101  return ['data' => $this->serialize()];
102  }
+ 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.

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

104  : void
105  {
106  $this->unserialize($data['data']);
107  }
+ Here is the call graph for this function:

◆ getClassName()

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

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 ( )

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 ( )

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 ( )

Definition at line 43 of file NullIdentification.php.

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

44  {
45  if ($this->wrapped_identification !== null) {
46  return $this->wrapped_identification->serialize();
47  }
48 
49  return "";
50  }
+ Here is the caller graph for this function:

◆ unserialize()

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

Definition at line 55 of file NullIdentification.php.

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

55  : void
56  {
57  // noting to do
58  }
+ 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: