]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Config/Adapter/IConfigAdapter.php
Merge branch 'master' into develop
[friendica.git] / src / Core / Config / Adapter / IConfigAdapter.php
index 21cd9a4b2ab8f184f870af8e55add727b81ee92a..892c476e7c30f3b1d003c0096594b35ffc5b30e7 100644 (file)
@@ -21,10 +21,12 @@ interface IConfigAdapter
         * Get a particular system-wide config variable given the category name
         * ($family) and a key.
         *
+        * Note: Boolean variables are defined as 0/1 in the database
+        *
         * @param string  $cat The category of the configuration value
         * @param string  $key The configuration key to query
         *
-        * @return mixed Stored value or "!<unset>!" if it does not exist
+        * @return null|mixed Stored value or null if it does not exist
         */
        public function get($cat, $key);
 
@@ -46,9 +48,9 @@ interface IConfigAdapter
         * and removes it from the database.
         *
         * @param string $cat The category of the configuration value
-        * @param string $key   The configuration key to delete
+        * @param string $key The configuration key to delete
         *
-        * @return mixed
+        * @return bool Operation success
         */
        public function delete($cat, $key);