ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullPluginIdentification.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
35 public function __construct(private string $plugin_id, private string $identification = "", private string $internal_identifier = "")
36 {
37 }
38
42 public function serialize(): string
43 {
44 return $this->identification;
45 }
46
50 public function unserialize($serialized): void
51 {
52 // nothing to do
53 }
54
58 public function getClassName(): string
59 {
60 return $this->plugin_id;
61 }
62
66 public function getInternalIdentifier(): string
67 {
68 return $this->internal_identifier;
69 }
70
74 public function getProviderNameForPresentation(): string
75 {
76 return $this->plugin_id;
77 }
78
79 public function __serialize(): array
80 {
81 return ['data' => $this->serialize()];
82 }
83
84 public function __unserialize(array $data): void
85 {
86 $this->unserialize($data['data']);
87 }
88}
__construct(private string $plugin_id, private string $identification="", private string $internal_identifier="")
NullPluginIdentification constructor.