ILIAS  release_8 Revision v8.24
NullIdentification.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
30
36 {
37 $this->wrapped_identification = $wrapped_identification;
38 }
39
43 public function serialize()
44 {
45 if ($this->wrapped_identification !== null) {
46 return $this->wrapped_identification->serialize();
47 }
48
49 return "";
50 }
51
55 public function unserialize($serialized): void
56 {
57 // noting to do
58 }
59
63 public function getClassName(): string
64 {
65 if ($this->wrapped_identification !== null) {
66 return $this->wrapped_identification->getClassName();
67 }
68
69 return "Null";
70 }
71
75 public function getInternalIdentifier(): string
76 {
77 if ($this->wrapped_identification !== null) {
78 return $this->wrapped_identification->getInternalIdentifier();
79 }
80
81 return "Null";
82 }
83
87 public function getProviderNameForPresentation(): string
88 {
89 if ($this->wrapped_identification !== null) {
90 return $this->wrapped_identification->getProviderNameForPresentation();
91 }
92
93 return "Null";
94 }
95
99 public function __serialize(): array
100 {
101 return ['data' => $this->serialize()];
102 }
103
104 public function __unserialize(array $data): void
105 {
106 $this->unserialize($data['data']);
107 }
108}
__construct(IdentificationInterface $wrapped_identification=null)
NullIdentification constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...