X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConfig%2FCapability%2FIManageConfigValues.php;h=715887ddf3cee96670d896d47ac6e49b82c3e9d7;hb=647ab1d04ac1dfba46888fed156dd416c7aa5b54;hp=09e70ba6d084322138de9a135a0d5bbec0ae2944;hpb=516018861e011865a902587876d484d6f0f42a66;p=friendica.git diff --git a/src/Core/Config/Capability/IManageConfigValues.php b/src/Core/Config/Capability/IManageConfigValues.php index 09e70ba6d0..715887ddf3 100644 --- a/src/Core/Config/Capability/IManageConfigValues.php +++ b/src/Core/Config/Capability/IManageConfigValues.php @@ -1,6 +1,6 @@ get($cat, $key, null, $refresh) ?? $default_value` instead * * @return mixed Stored value or null if it does not exist * * @throws ConfigPersistenceException In case the persistence layer throws errors * */ - public function get(string $cat, string $key, $default_value = null, bool $refresh = false); + public function get(string $cat, string $key, $default_value = null); + + /** + * Load all configuration values from a given cache and saves it back in the configuration node store + * @see ConfigFileManager::CONFIG_DATA_FILE + * + * All configuration values of the system are stored in the cache. + * + * @param Cache $cache a new cache + * + * @return void + * + * @throws ConfigPersistenceException In case the persistence layer throws errors + */ + public function load(Cache $cache); /** * Sets a configuration value for system config @@ -78,6 +89,15 @@ interface IManageConfigValues */ public function set(string $cat, string $key, $value): bool; + /** + * Creates a transactional config value store, which is used to set a bunch of values at once + * + * It relies on the current instance, so after save(), the values of this config class will get altered at once too. + * + * @return ISetConfigValuesTransactionally + */ + public function beginTransaction(): ISetConfigValuesTransactionally; + /** * Deletes the given key from the system configuration. *