diff options
author | yemkareems <yemkareems@gmail.com> | 2024-06-26 14:04:57 +0530 |
---|---|---|
committer | yemkareems <yemkareems@gmail.com> | 2024-07-08 15:42:55 +0530 |
commit | 5b249df6866c3434740d08827eeabcf2cb6eb2e9 (patch) | |
tree | c6f2ac591c3cbf7cba706828723d6dfde1fa458d /lib/public | |
parent | 695bd042d7c447a6ba040bee4ab45bbb3e8122ca (diff) | |
download | nextcloud-server-5b249df6866c3434740d08827eeabcf2cb6eb2e9.tar.gz nextcloud-server-5b249df6866c3434740d08827eeabcf2cb6eb2e9.zip |
fix: doc blocks added
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IConfig.php | 8 | ||||
-rw-r--r-- | lib/public/IUserManager.php | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php index 39f9ecff94c..093c0ecbd37 100644 --- a/lib/public/IConfig.php +++ b/lib/public/IConfig.php @@ -250,5 +250,13 @@ interface IConfig { */ public function getUsersForUserValue($appName, $key, $value); + /** + * Gets the list of users based on their lastLogin info asc or desc + * + * @param string $search search users based on search params + * @param string $sortMode can be lastLogin or any key in preferences + * @param string $sortOrder asc or desc + * @return array of user IDs + */ public function getLastLoggedInUsers($search, $sortMode, $sortOrder); } diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php index 83422c51dfc..e614619eec8 100644 --- a/lib/public/IUserManager.php +++ b/lib/public/IUserManager.php @@ -124,6 +124,9 @@ interface IUserManager { */ public function getDisabledUsers(?int $limit = null, int $offset = 0, string $search = ''): array; + /** + * @return IUser[] + */ public function getUsersSortedByLastLogin(?int $limit = null, int $offset = 0, $search = '', $sortMode = 'lastLogin', $sortOrder = 'desc'): array; /** * Search known users (from phonebook sync) by displayName |