Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleQuery.php
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | public function needBadgeAwards($need) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorUser(); | return new PhabricatorUser(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function didFilterPage(array $users) { | protected function didFilterPage(array $users) { | ||||
if ($this->needProfile) { | if ($this->needProfile) { | ||||
$user_list = mpull($users, null, 'getPHID'); | $user_list = mpull($users, null, 'getPHID'); | ||||
$profiles = new PhabricatorUserProfile(); | $profiles = new PhabricatorUserProfile(); | ||||
$profiles = $profiles->loadAllWhere( | $profiles = $profiles->loadAllWhere( | ||||
'userPHID IN (%Ls)', | 'userPHID IN (%Ls)', | ||||
array_keys($user_list)); | array_keys($user_list)); | ||||
▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines |