use null instead of -1 on all getUser()

This commit is contained in:
Jörn Friedrich Dreyer 2012-09-01 20:49:50 +02:00
parent 828ca2ba36
commit 2c1f732880
4 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class User {
* *
* Get a list of all users. * Get a list of all users.
*/ */
public static function getUsers($search = '', $limit = -1, $offset = 0) { public static function getUsers($search = '', $limit = null, $offset = null) {
return \OC_USER::getUsers(); return \OC_USER::getUsers();
} }

View File

@ -99,7 +99,7 @@ abstract class OC_User_Backend implements OC_User_Interface {
* *
* Get a list of all users. * Get a list of all users.
*/ */
public function getUsers($search = '', $limit = -1, $offset = 0) { public function getUsers($search = '', $limit = null, $offset = null) {
return array(); return array();
} }

View File

@ -100,7 +100,7 @@ class OC_User_Dummy extends OC_User_Backend {
* *
* Get a list of all users. * Get a list of all users.
*/ */
public function getUsers($search = '', $limit = -1, $offset = 0) { public function getUsers($search = '', $limit = null, $offset = null) {
return array_keys($this->users); return array_keys($this->users);
} }

View File

@ -48,7 +48,7 @@ interface OC_User_Interface {
* *
* Get a list of all users. * Get a list of all users.
*/ */
public function getUsers($search = '', $limit = -1, $offset = 0); public function getUsers($search = '', $limit = null, $offset = null);
/** /**
* @brief check if a user exists * @brief check if a user exists