summaryrefslogtreecommitdiffstats
path: root/lib/private/group
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-15 12:38:18 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-15 12:38:18 +0100
commit416fb656050f19f97f8218a5aca8095e80da4acd (patch)
treeac922fc9946ca6701a8e1230aef7d2bd4026b36a /lib/private/group
parentb37634a57de1f6a814687670b32472895ed49314 (diff)
parentbd77cd98c9746e2c7997fb72409d83b15cc7eaa9 (diff)
downloadnextcloud-server-416fb656050f19f97f8218a5aca8095e80da4acd.tar.gz
nextcloud-server-416fb656050f19f97f8218a5aca8095e80da4acd.zip
Merge pull request #21717 from owncloud/addpublicgroupinterface
allow apps to add an OCP GroupInterface backend
Diffstat (limited to 'lib/private/group')
-rw-r--r--lib/private/group/backend.php4
-rw-r--r--lib/private/group/manager.php5
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/group/backend.php b/lib/private/group/backend.php
index ed059f63aaf..ed2a2f4bb68 100644
--- a/lib/private/group/backend.php
+++ b/lib/private/group/backend.php
@@ -82,7 +82,7 @@ abstract class OC_Group_Backend implements \OCP\GroupInterface {
* @return int bitwise-or'ed actions
*
* Returns the supported actions as int to be
- * compared with OC_USER_BACKEND_CREATE_USER etc.
+ * compared with \OC_Group_Backend::CREATE_GROUP etc.
*/
public function getSupportedActions() {
$actions = 0;
@@ -101,7 +101,7 @@ abstract class OC_Group_Backend implements \OCP\GroupInterface {
* @return bool
*
* Returns the supported actions as int to be
- * compared with OC_GROUP_BACKEND_CREATE_GROUP etc.
+ * compared with \OC_Group_Backend::CREATE_GROUP etc.
*/
public function implementsActions($actions) {
return (bool)($this->getSupportedActions() & $actions);
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index 8a21c77b58b..2c28f3b0e7f 100644
--- a/lib/private/group/manager.php
+++ b/lib/private/group/manager.php
@@ -33,6 +33,7 @@
namespace OC\Group;
use OC\Hooks\PublicEmitter;
+use OCP\GroupInterface;
use OCP\IGroupManager;
/**
@@ -52,7 +53,7 @@ use OCP\IGroupManager;
*/
class Manager extends PublicEmitter implements IGroupManager {
/**
- * @var \OC_Group_Backend[]|\OC_Group_Database[] $backends
+ * @var GroupInterface[] $backends
*/
private $backends = array();
@@ -121,7 +122,7 @@ class Manager extends PublicEmitter implements IGroupManager {
}
/**
- * @param \OC_Group_Backend $backend
+ * @param \OCP\GroupInterface $backend
*/
public function addBackend($backend) {
$this->backends[] = $backend;