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