This commit is contained in:
Robin Appelman 2010-09-19 12:26:33 +02:00
commit a72cba4ae2
3 changed files with 44 additions and 0 deletions

View File

@ -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();
}

View File

@ -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();
}
}

View File

@ -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;
}
}