diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-04-14 20:45:12 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-04-14 20:45:12 +0200 |
commit | 340089f270a778aeb296b1744821dcdb5878131e (patch) | |
tree | f579bd25e61fd165142e8f95383ce73423c1494f /apps/user_ldap/group_proxy.php | |
parent | 9046f7b2f81d6f20c2d61ebd6b408945118928b7 (diff) | |
parent | 240732162509d0caf71ef5f1414b2595bbe47fe9 (diff) | |
download | nextcloud-server-340089f270a778aeb296b1744821dcdb5878131e.tar.gz nextcloud-server-340089f270a778aeb296b1744821dcdb5878131e.zip |
Merge pull request #8059 from owncloud/countUsersInGroup
add optional countUsersInGroup method to group backends
Diffstat (limited to 'apps/user_ldap/group_proxy.php')
-rw-r--r-- | apps/user_ldap/group_proxy.php | 11 |
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) */ |