| @@ 375-384 (lines=10) @@ | ||
| 372 | $offset = 0; |
|
| 373 | do { |
|
| 374 | $users = $backend->getUsers($search, $limit, $offset); |
|
| 375 | foreach ($users as $uid) { |
|
| 376 | if (!$backend->userExists($uid)) { |
|
| 377 | continue; |
|
| 378 | } |
|
| 379 | $user = $this->getUserObject($uid, $backend, false); |
|
| 380 | $return = $callback($user); |
|
| 381 | if ($return === false) { |
|
| 382 | break; |
|
| 383 | } |
|
| 384 | } |
|
| 385 | $offset += $limit; |
|
| 386 | } while (count($users) >= $limit); |
|
| 387 | } |
|
| @@ 423-433 (lines=11) @@ | ||
| 420 | do { |
|
| 421 | $userIds = $this->getSeenUserIds($limit, $offset); |
|
| 422 | $offset += $limit; |
|
| 423 | foreach ($userIds as $userId) { |
|
| 424 | foreach ($this->backends as $backend) { |
|
| 425 | if ($backend->userExists($userId)) { |
|
| 426 | $user = $this->getUserObject($userId, $backend, false); |
|
| 427 | $return = $callback($user); |
|
| 428 | if ($return === false) { |
|
| 429 | return; |
|
| 430 | } |
|
| 431 | } |
|
| 432 | } |
|
| 433 | } |
|
| 434 | } while (count($userIds) >= $limit); |
|
| 435 | } |
|
| 436 | ||