Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-07-20 15:15:12 +0400
committerArthur Schiwon <blizzz@owncloud.com>2012-07-25 14:56:08 +0400
commite499bc37c839cc8b33d81e8eb360a4dfd1050ca2 (patch)
treefd66e8edd4ad445433a07df512e5ba25c59711e3 /lib/group.php
parentfdcbc23ed6bb520f50c7c4ce5f169e6716e1c5f0 (diff)
define an interface for the Group Backend
Diffstat (limited to 'lib/group.php')
-rw-r--r--lib/group.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/group.php b/lib/group.php
index ceee5fa4edb..12e5f5ebb30 100644
--- a/lib/group.php
+++ b/lib/group.php
@@ -43,7 +43,7 @@ class OC_Group {
* @returns true/false
*/
public static function useBackend( $backend ){
- if($backend instanceof OC_Group_Backend){
+ if($backend instanceof OC_Group_Interface){
self::$_usedBackends[]=$backend;
}
}
@@ -168,7 +168,7 @@ class OC_Group {
if($run){
$succes=false;
-
+
//add the user to the all backends that have the group
foreach(self::$_usedBackends as $backend){
if(!$backend->implementsActions(OC_GROUP_BACKEND_ADD_TO_GROUP))
@@ -245,7 +245,7 @@ class OC_Group {
asort($groups);
return $groups;
}
-
+
/**
* check if a group exists
* @param string $gid
@@ -259,7 +259,7 @@ class OC_Group {
}
return false;
}
-
+
/**
* @brief get a list of all users in a group
* @returns array with user ids