X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConfig%2FIPConfigAdapter.php;h=e62fc9c93fb83e0a427fcc638d05839229fb2c35;hb=3cd654e76f32dbcf505aef6a60a3e42d318f8b61;hp=a0f0c9a94c10040956b8a8086be37ca66154e4f8;hpb=da40c96e9a059e1f41ff62bdf7107c9dbfca6dbe;p=friendica.git diff --git a/src/Core/Config/IPConfigAdapter.php b/src/Core/Config/IPConfigAdapter.php index a0f0c9a94c..e62fc9c93f 100644 --- a/src/Core/Config/IPConfigAdapter.php +++ b/src/Core/Config/IPConfigAdapter.php @@ -15,10 +15,7 @@ namespace Friendica\Core\Config; interface IPConfigAdapter { /** - * @brief Loads all configuration values of a user's config family into a cached storage. - * - * All configuration values of the given user are stored in global cache - * which is available under the global variable $a->config[$uid]. + * Loads all configuration values of a user's config family into a cached storage. * * @param string $uid The user_id * @param string $cat The category of the configuration value @@ -28,12 +25,9 @@ interface IPConfigAdapter public function load($uid, $cat); /** - * @brief Get a particular user's config variable given the category name + * Get a particular user's config variable given the category name * ($family) and a key. * - * Get a particular user's config value from the given category ($family) - * and the $key from a cached storage in $a->config[$uid]. - * * @param string $uid The user_id * @param string $cat The category of the configuration value * @param string $k The configuration key to query @@ -45,8 +39,6 @@ interface IPConfigAdapter public function get($uid, $cat, $k, $default_value = null, $refresh = false); /** - * @brief Sets a configuration value for a user - * * Stores a config value ($value) in the category ($family) under the key ($key) * for the user_id $uid. * @@ -57,14 +49,12 @@ interface IPConfigAdapter * @param string $k The configuration key to set * @param string $value The value to store * - * @return mixed Stored $value or false + * @return bool Operation success */ public function set($uid, $cat, $k, $value); /** - * @brief Deletes the given key from the users's configuration. - * - * Removes the configured value from the stored cache in $a->config[$uid] + * Removes the configured value from the stored cache * and removes it from the database. * * @param string $uid The user_id