Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Settings/Plugin/SystemSettings.php')
-rw-r--r--core/Settings/Plugin/SystemSettings.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/Settings/Plugin/SystemSettings.php b/core/Settings/Plugin/SystemSettings.php
index 1b2fc413ff..a733756009 100644
--- a/core/Settings/Plugin/SystemSettings.php
+++ b/core/Settings/Plugin/SystemSettings.php
@@ -63,6 +63,26 @@ abstract class SystemSettings extends Settings
}
/**
+ * This is only meant for some core features used by some core plugins that are shipped with Piwik
+ * @internal
+ * @ignore
+ * @param string $configSectionName
+ * @param $name
+ * @param $defaultValue
+ * @param $type
+ * @param $fieldConfigCallback
+ * @return SystemSetting
+ * @throws \Exception
+ */
+ protected function makeSettingManagedInConfigOnly($configSectionName, $name, $defaultValue, $type, $fieldConfigCallback)
+ {
+ $setting = new SystemConfigSetting($name, $defaultValue, $type, $this->pluginName, $configSectionName);
+ $setting->setConfigureCallback($fieldConfigCallback);
+ $this->addSetting($setting);
+ return $setting;
+ }
+
+ /**
* Saves (persists) the current setting values in the database.
*
* Will trigger an event to notify plugins that a value has been changed.