add functions to get a list of all users or groups

remotes/origin/stable
Robin Appelman 16 years ago
parent 3c1cdee910
commit a1fbbd09ee
  1. 12
      inc/User/backend.php
  2. 15
      inc/lib_user.php
  3. 17
      plugins/ldap/lib_ldap.php

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

Loading…
Cancel
Save