| @@ 425-434 (lines=10) @@ | ||
| 422 | $offset = 0; |
|
| 423 | do { |
|
| 424 | $users = $backend->getUsers($search, $limit, $offset); |
|
| 425 | foreach ($users as $uid) { |
|
| 426 | if (!$backend->userExists($uid)) { |
|
| 427 | continue; |
|
| 428 | } |
|
| 429 | $user = $this->getUserObject($uid, $backend, false); |
|
| 430 | $return = $callback($user); |
|
| 431 | if ($return === false) { |
|
| 432 | break; |
|
| 433 | } |
|
| 434 | } |
|
| 435 | $offset += $limit; |
|
| 436 | } while (count($users) >= $limit); |
|
| 437 | } |
|
| @@ 531-542 (lines=12) @@ | ||
| 528 | do { |
|
| 529 | $userIds = $this->getSeenUserIds($limit, $offset); |
|
| 530 | $offset += $limit; |
|
| 531 | foreach ($userIds as $userId) { |
|
| 532 | foreach ($this->backends as $backend) { |
|
| 533 | if ($backend->userExists($userId)) { |
|
| 534 | $user = $this->getUserObject($userId, $backend, false); |
|
| 535 | $return = $callback($user); |
|
| 536 | if ($return === false) { |
|
| 537 | return; |
|
| 538 | } |
|
| 539 | break; |
|
| 540 | } |
|
| 541 | } |
|
| 542 | } |
|
| 543 | } while (count($userIds) >= $limit); |
|
| 544 | } |
|
| 545 | ||