diff options
author | yemkareems <yemkareems@gmail.com> | 2024-05-28 16:23:51 +0530 |
---|---|---|
committer | yemkareems <yemkareems@gmail.com> | 2024-07-08 15:42:55 +0530 |
commit | 76c875a5882753e37ef39015a1711b68e7ea0d0b (patch) | |
tree | 15f233f126587ba56b8c58a435e11c8632dc2550 /lib/public | |
parent | 33b38c6573cbd197989539601ddfcb4524eb4c48 (diff) | |
download | nextcloud-server-76c875a5882753e37ef39015a1711b68e7ea0d0b.tar.gz nextcloud-server-76c875a5882753e37ef39015a1711b68e7ea0d0b.zip |
fix: change orderBy and sort to sortMode and sortOrder. default it to uid asc. enable email search by changing query
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IUserManager.php | 2 | ||||
-rw-r--r-- | lib/public/UserInterface.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php index 89cd1f71899..b4fb265f6eb 100644 --- a/lib/public/IUserManager.php +++ b/lib/public/IUserManager.php @@ -104,7 +104,7 @@ interface IUserManager { * @return \OCP\IUser[] * @since 8.0.0 */ - public function search($pattern, $limit = null, $offset = null, $orderBy = 'uid', $sort = 'ASC'); + public function search($pattern, $limit = null, $offset = null, $sortMode = 'uid', $sortOrder = 'asc'); /** * search by displayName diff --git a/lib/public/UserInterface.php b/lib/public/UserInterface.php index 765da3a87a2..a28e9ffe726 100644 --- a/lib/public/UserInterface.php +++ b/lib/public/UserInterface.php @@ -45,7 +45,7 @@ interface UserInterface { * @return string[] an array of all uids * @since 4.5.0 */ - public function getUsers($search = '', $limit = null, $offset = null, $orderBy = 'lastLogin', $sort = 'DESC'); + public function getUsers($search = '', $limit = null, $offset = null, string $sortMode = 'uid', string $sortOrder = 'asc'); /** * check if a user exists @@ -69,12 +69,12 @@ interface UserInterface { * @param string $search * @param int|null $limit * @param int|null $offset - * @param string $orderBy - * @param string $sort + * @param string $sortMode + * @param string $sortOrder * @return array an array of all displayNames (value) and the corresponding uids (key) * @since 4.5.0 */ - public function getDisplayNames($search = '', $limit = null, $offset = null, string $orderBy = 'lastLogin', string $sort = 'DESC'); + public function getDisplayNames($search = '', $limit = null, $offset = null, string $sortMode = 'uid', string $sortOrder = 'asc'); /** * Check if a user list is available or not |