diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-20 13:15:12 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-25 12:56:08 +0200 |
commit | e499bc37c839cc8b33d81e8eb360a4dfd1050ca2 (patch) | |
tree | fd66e8edd4ad445433a07df512e5ba25c59711e3 /lib/group.php | |
parent | fdcbc23ed6bb520f50c7c4ce5f169e6716e1c5f0 (diff) | |
download | nextcloud-server-e499bc37c839cc8b33d81e8eb360a4dfd1050ca2.tar.gz nextcloud-server-e499bc37c839cc8b33d81e8eb360a4dfd1050ca2.zip |
define an interface for the Group Backend
Diffstat (limited to 'lib/group.php')
-rw-r--r-- | lib/group.php | 8 |
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 |