BackendInterface.php
5 years ago
BaseSettingsTable.php
6 years ago
Cache.php
5 years ago
Config.php
5 years ago
MeasurableSettingsTable.php
5 years ago
NullBackend.php
5 years ago
PluginSettingsTable.php
5 years ago
SitesTable.php
5 years ago
NullBackend.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Matomo - free/libre analytics platform |
| 4 | * |
| 5 | * @link https://matomo.org |
| 6 | * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | namespace Piwik\Settings\Storage\Backend; |
| 11 | |
| 12 | /** |
| 13 | * Static / temporary storage where a value shall never be persisted. Meaning it will use the default value |
| 14 | * for each request until configured differently. Useful for tests etc. |
| 15 | */ |
| 16 | class NullBackend implements BackendInterface |
| 17 | { |
| 18 | private $storageId; |
| 19 | |
| 20 | public function __construct($storageId) |
| 21 | { |
| 22 | $this->storageId = $storageId; |
| 23 | } |
| 24 | |
| 25 | public function load() |
| 26 | { |
| 27 | return array(); |
| 28 | } |
| 29 | |
| 30 | public function getStorageId() |
| 31 | { |
| 32 | return $this->storageId; |
| 33 | } |
| 34 | |
| 35 | public function delete() |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | public function save($values) |
| 40 | { |
| 41 | } |
| 42 | } |
| 43 |