Download core/Settings/Storage/Backend/NullBackend.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 797 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Settings/Storage/Backend/NullBackend.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/core/Settings/Storage/Backend/NullBackend.php
-
curl -L -o NullBackend.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Settings/Storage/Backend/NullBackend.php
797 Bytes
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Settings\Storage\Backend; | |
| /** | |
| * Static / temporary storage where a value shall never be persisted. Meaning it will use the default value | |
| * for each request until configured differently. Useful for tests etc. | |
| */ | |
| class NullBackend implements BackendInterface | |
| { | |
| private $storageId; | |
| public function __construct($storageId) | |
| { | |
| $this->storageId = $storageId; | |
| } | |
| public function load() | |
| { | |
| return array(); | |
| } | |
| public function getStorageId() | |
| { | |
| return $this->storageId; | |
| } | |
| public function delete() | |
| { | |
| } | |
| public function save($values) | |
| { | |
| } | |
| } | |