summaryrefslogtreecommitdiffstats
path: root/lib/public/IConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IConfig.php')
-rw-r--r--lib/public/IConfig.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php
index 33b9c97971a..0e7a7523218 100644
--- a/lib/public/IConfig.php
+++ b/lib/public/IConfig.php
@@ -186,7 +186,7 @@ interface IConfig {
/**
* Shortcut for getting a user defined value
*
- * @param string $userId the userId of the user that we want to store the value under
+ * @param ?string $userId the userId of the user that we want to store the value under
* @param string $appName the appName that we stored the value under
* @param string $key the key under which the value is being stored
* @param mixed $default the default value to be returned if the value isn't set
@@ -217,6 +217,19 @@ interface IConfig {
public function getUserKeys($userId, $appName);
/**
+ * Get all user configs sorted by app of one user
+ *
+ * @param string $userId the userId of the user that we want to get all values from
+ * @psalm-return array<string, array<string, string>>
+ * @return array[] - 2 dimensional array with the following structure:
+ * [ $appId =>
+ * [ $key => $value ]
+ * ]
+ * @since 24.0.0
+ */
+ public function getAllUserValues(string $userId): array;
+
+ /**
* Delete a user value
*
* @param string $userId the userId of the user that we want to store the value under