ILIAS  release_7 Revision v7.30-3-g800a261c036
NullPluginIdentification.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
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 {
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}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $plugin_id, string $identification="", string $internal_identifier="")
NullPluginIdentification constructor.
$data
Definition: storeScorm.php:23