ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
NullPluginIdentification.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
36  private $identification;
40  private $plugin_id;
41 
48  public function __construct(string $plugin_id, string $identification = "", string $internal_identifier = "")
49  {
50  $this->plugin_id = $plugin_id;
51  $this->identification = $identification;
52  $this->internal_identifier = $internal_identifier;
53  }
54 
58  public function serialize() : string
59  {
60  return $this->identification;
61  }
62 
66  public function unserialize($serialized) : void
67  {
68  // nothing to do
69  }
70 
74  public function getClassName() : string
75  {
76  return $this->plugin_id;
77  }
78 
82  public function getInternalIdentifier() : string
83  {
85  }
86 
90  public function getProviderNameForPresentation() : string
91  {
92  return $this->plugin_id;
93  }
94 
98  public function __serialize() : array
99  {
100  return ['data' => $this->serialize()];
101  }
102 
103  public function __unserialize(array $data) : void
104  {
105  $this->unserialize($data['data']);
106  }
107 }
$data
Definition: storeScorm.php:23
__construct(string $plugin_id, string $identification="", string $internal_identifier="")
NullPluginIdentification constructor.