summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/group_proxy.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-04 18:56:34 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-04-08 12:04:38 +0200
commit96cb75f5cf8c14f389213e1745cc3a98f8d1cbd4 (patch)
tree588de14fa63495b5e48e8dd4be828a1360b75b9f /apps/user_ldap/group_proxy.php
parent698297feb3cb8e78c0e4adb6756e0ea98da49677 (diff)
downloadnextcloud-server-96cb75f5cf8c14f389213e1745cc3a98f8d1cbd4.tar.gz
nextcloud-server-96cb75f5cf8c14f389213e1745cc3a98f8d1cbd4.zip
implement countUsersInGroup in LDAP group backend
Diffstat (limited to 'apps/user_ldap/group_proxy.php')
-rw-r--r--apps/user_ldap/group_proxy.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/user_ldap/group_proxy.php b/apps/user_ldap/group_proxy.php
index 4404bd7fe3a..c0009736239 100644
--- a/apps/user_ldap/group_proxy.php
+++ b/apps/user_ldap/group_proxy.php
@@ -145,6 +145,17 @@ class Group_Proxy extends lib\Proxy implements \OCP\GroupInterface {
}
/**
+ * @brief returns the number of users in a group, who match the search term
+ * @param string the internal group name
+ * @param string optional, a search string
+ * @returns int | bool
+ */
+ public function countUsersInGroup($gid, $search = '') {
+ return $this->handleRequest(
+ $gid, 'countUsersInGroup', array($gid, $search));
+ }
+
+ /**
* @brief get a list of all display names in a group
* @returns array with display names (value) and user ids(key)
*/