| @@ 406-415 (lines=10) @@ | ||
| 403 | $offset = 0; |
|
| 404 | do { |
|
| 405 | $users = $backend->getUsers($search, $limit, $offset); |
|
| 406 | foreach ($users as $uid) { |
|
| 407 | if (!$backend->userExists($uid)) { |
|
| 408 | continue; |
|
| 409 | } |
|
| 410 | $user = $this->getUserObject($uid, $backend, false); |
|
| 411 | $return = $callback($user); |
|
| 412 | if ($return === false) { |
|
| 413 | break; |
|
| 414 | } |
|
| 415 | } |
|
| 416 | $offset += $limit; |
|
| 417 | } while (count($users) >= $limit); |
|
| 418 | } |
|
| @@ 479-490 (lines=12) @@ | ||
| 476 | do { |
|
| 477 | $userIds = $this->getSeenUserIds($limit, $offset); |
|
| 478 | $offset += $limit; |
|
| 479 | foreach ($userIds as $userId) { |
|
| 480 | foreach ($this->backends as $backend) { |
|
| 481 | if ($backend->userExists($userId)) { |
|
| 482 | $user = $this->getUserObject($userId, $backend, false); |
|
| 483 | $return = $callback($user); |
|
| 484 | if ($return === false) { |
|
| 485 | return; |
|
| 486 | } |
|
| 487 | break; |
|
| 488 | } |
|
| 489 | } |
|
| 490 | } |
|
| 491 | } while (count($userIds) >= $limit); |
|
| 492 | } |
|
| 493 | ||