Beispiel #1
0
 public static function arcCheckSettingExists($name, $value, $id = 0)
 {
     $setting = \SystemSetting::getByKey($name, $id);
     if (!\SystemSetting::keyExists($name, $id)) {
         $setting->value = $value;
         $setting->userid = $id;
         $setting->update();
         \Log::createLog("warning", "Setting", $name . " was initilised with value '" . $value . "', ID: '" . $id . "'");
     }
 }