Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleQuery.php
Show First 20 Lines • Show All 157 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() { | protected function loadPage() { | ||||
$table = new PhabricatorUser(); | return $this->loadStandardPage($this->newResultObject()); | ||||
$data = $this->loadStandardPageRows($table); | |||||
if ($this->needPrimaryEmail) { | |||||
$table->putInSet(new LiskDAOSet()); | |||||
} | |||||
return $table->loadAllFromArray($data); | |||||
} | } | ||||
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)', | ||||
▲ Show 20 Lines • Show All 461 Lines • Show Last 20 Lines |