|
@@ -9,6 +9,7 @@ use Luticate\Auth\DBO\LuticateUsersLoginDbo;
|
9
|
9
|
use Luticate\Utils\LuBusiness;
|
10
|
10
|
use Luticate\Auth\DataAccess\LuticateUsersDataAccess;
|
11
|
11
|
use Luticate\Auth\DBO\LuticateUsersDbo;
|
|
12
|
+use Luticate\Utils\LuMultipleDbo;
|
12
|
13
|
|
13
|
14
|
class LuticateUsersBusiness extends LuBusiness {
|
14
|
15
|
|
|
@@ -104,10 +105,10 @@ class LuticateUsersBusiness extends LuBusiness {
|
104
|
105
|
{
|
105
|
106
|
$users = self::getAll($page, $perPage);
|
106
|
107
|
$usersLight = array();
|
107
|
|
- foreach ($users as $user) {
|
|
108
|
+ foreach ($users->getData() as $user) {
|
108
|
109
|
$usersLight[] = LuticateUsersLightDbo::fromUserDbo($user);
|
109
|
110
|
}
|
110
|
|
- return $usersLight;
|
|
111
|
+ return new LuMultipleDbo($users->getCount(), $usersLight);
|
111
|
112
|
}
|
112
|
113
|
|
113
|
114
|
public static function getLightById($user_id)
|