ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
NullPluginIdentification.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
29  private string $internal_identifier;
30  private string $identification;
31  private string $plugin_id;
32 
39  public function __construct(string $plugin_id, string $identification = "", string $internal_identifier = "")
40  {
41  $this->plugin_id = $plugin_id;
42  $this->identification = $identification;
43  $this->internal_identifier = $internal_identifier;
44  }
45 
49  public function serialize(): string
50  {
51  return $this->identification;
52  }
53 
57  public function unserialize($serialized): void
58  {
59  // nothing to do
60  }
61 
65  public function getClassName(): string
66  {
67  return $this->plugin_id;
68  }
69 
73  public function getInternalIdentifier(): string
74  {
76  }
77 
81  public function getProviderNameForPresentation(): string
82  {
83  return $this->plugin_id;
84  }
85 
86  public function __serialize(): array
87  {
88  return ['data' => $this->serialize()];
89  }
90 
91  public function __unserialize(array $data): void
92  {
93  $this->unserialize($data['data']);
94  }
95 }
__construct(string $plugin_id, string $identification="", string $internal_identifier="")
NullPluginIdentification constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...