Add the possibility to unlink settings on multiple servers

This commit is contained in:
Beu
2022-04-10 22:11:28 +02:00
parent 4948d5219c
commit cdd89da287
4 changed files with 540 additions and 60 deletions

View File

@ -34,6 +34,8 @@ class Setting implements UsageInformationAble {
public $class = null;
public $setting = null;
public $type = null;
public $linked = null;
public $serverIndex = null;
public $value = null;
public $default = null;
public $set = null;
@ -58,6 +60,8 @@ class Setting implements UsageInformationAble {
if ($this->set) {
$this->set = $this->castValue($this->set, $this->type);
}
$this->linked = $this->castValue($this->linked);
$this->serverIndex = $this->castValue($this->serverIndex);
$this->fetchTime = time();
} else {
// Created by Values
@ -74,6 +78,8 @@ class Setting implements UsageInformationAble {
$this->default = $this->value;
$this->description = $description;
$this->priority = $priority;
$this->linked = true;
$this->serverIndex = 0;
}
}