ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ()
 

Protected Attributes

 $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 22 of file NullIdentification.php.

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

23  {
24  $this->wrapped_identification = $wrapped_identification;
25  }

Member Function Documentation

◆ getClassName()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 53 of file NullIdentification.php.

53  : string
54  {
55  if ($this->wrapped_identification !== null) {
56  return $this->wrapped_identification->getClassName();
57  }
58 
59  return "Null";
60  }

◆ getInternalIdentifier()

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

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->getInternalIdentifier();
70  }
71 
72  return "Null";
73  }

◆ getProviderNameForPresentation()

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

Implements ILIAS\GlobalScreen\Identification\IdentificationInterface.

Definition at line 79 of file NullIdentification.php.

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

◆ serialize()

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

Definition at line 31 of file NullIdentification.php.

32  {
33  if ($this->wrapped_identification !== null) {
34  return $this->wrapped_identification->serialize();
35  }
36 
37  return "";
38  }

◆ unserialize()

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

Definition at line 44 of file NullIdentification.php.

45  {
46  return;
47  }

Field Documentation

◆ $wrapped_identification

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

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