| @@ 395-404 (lines=10) @@ | ||
| 392 | $offset = 0; |
|
| 393 | do { |
|
| 394 | $users = $backend->getUsers($search, $limit, $offset); |
|
| 395 | foreach ($users as $uid) { |
|
| 396 | if (!$backend->userExists($uid)) { |
|
| 397 | continue; |
|
| 398 | } |
|
| 399 | $user = $this->getUserObject($uid, $backend, false); |
|
| 400 | $return = $callback($user); |
|
| 401 | if ($return === false) { |
|
| 402 | break; |
|
| 403 | } |
|
| 404 | } |
|
| 405 | $offset += $limit; |
|
| 406 | } while (count($users) >= $limit); |
|
| 407 | } |
|
| @@ 465-475 (lines=11) @@ | ||
| 462 | do { |
|
| 463 | $userIds = $this->getSeenUserIds($limit, $offset); |
|
| 464 | $offset += $limit; |
|
| 465 | foreach ($userIds as $userId) { |
|
| 466 | foreach ($this->backends as $backend) { |
|
| 467 | if ($backend->userExists($userId)) { |
|
| 468 | $user = $this->getUserObject($userId, $backend, false); |
|
| 469 | $return = $callback($user); |
|
| 470 | if ($return === false) { |
|
| 471 | return; |
|
| 472 | } |
|
| 473 | } |
|
| 474 | } |
|
| 475 | } |
|
| 476 | } while (count($userIds) >= $limit); |
|
| 477 | } |
|
| 478 | ||