@@ -138,4 +138,16 @@ abstract class OC_USER_BACKEND { | |||
*/ | |||
abstract public static function checkPassword($username, $password); | |||
/** | |||
* get a list of all users | |||
* | |||
*/ | |||
abstract public static function getUsers(); | |||
/** | |||
* get a list of all groups | |||
* | |||
*/ | |||
abstract public static function getGroups(); | |||
} |
@@ -213,4 +213,19 @@ class OC_USER { | |||
return self::$_backend->checkPassword($username, $password); | |||
} | |||
/** | |||
* get a list of all users | |||
* | |||
*/ | |||
public static function getUsers() { | |||
return self::$_backend->getUsers(); | |||
} | |||
/** | |||
* get a list of all groups | |||
* | |||
*/ | |||
public static function getGroups() { | |||
return self::$_backend->getGroups(); | |||
} | |||
} |
@@ -199,4 +199,21 @@ class OC_USER_LDAP extends OC_USER_BACKEND { | |||
return false; | |||
} | |||
/** | |||
* get a list of all users | |||
* | |||
*/ | |||
public static function getUsers(){ | |||
// does not work with MOD_AUTH (only or some modules) | |||
return false; | |||
} | |||
/** | |||
* get a list of all groups | |||
* | |||
*/ | |||
public static function getGroups(){ | |||
// does not work with MOD_AUTH (only or some modules) | |||
return false; | |||
} | |||
} |