ILIAS  release_7 Revision v7.30-3-g800a261c036
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

 $wrapped_identification
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

NullIdentification constructor.

Parameters
IdentificationInterface$wrapped_identification

Definition at line 38 of file NullIdentification.php.

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

39  {
40  $this->wrapped_identification = $wrapped_identification;
41  }

Member Function Documentation

◆ __serialize()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 102 of file NullIdentification.php.

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

102  : array
103  {
104  return ['data' => $this->serialize()];
105  }
+ Here is the call graph for this function:

◆ __unserialize()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 107 of file NullIdentification.php.

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

107  : void
108  {
109  $this->unserialize($data['data']);
110  }
$data
Definition: storeScorm.php:23
+ Here is the call graph for this function:

◆ getClassName()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 66 of file NullIdentification.php.

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

◆ getInternalIdentifier()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 78 of file NullIdentification.php.

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

◆ getProviderNameForPresentation()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 90 of file NullIdentification.php.

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

◆ serialize()

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

Definition at line 46 of file NullIdentification.php.

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

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

◆ unserialize()

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

Definition at line 58 of file NullIdentification.php.

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

58  : void
59  {
60  // noting to do
61  }
+ Here is the caller graph for this function:

Field Documentation

◆ $wrapped_identification

ILIAS\GlobalScreen\Identification\NullIdentification::$wrapped_identification
protected

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