Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleQuery.php
Show All 18 Lines | final class PhabricatorPeopleQuery | ||||
private $nameTokens; | private $nameTokens; | ||||
private $namePrefixes; | private $namePrefixes; | ||||
private $isEnrolledInMultiFactor; | private $isEnrolledInMultiFactor; | ||||
private $needPrimaryEmail; | private $needPrimaryEmail; | ||||
private $needProfile; | private $needProfile; | ||||
private $needProfileImage; | private $needProfileImage; | ||||
private $needAvailability; | private $needAvailability; | ||||
private $needBadgeAwards; | |||||
private $cacheKeys = array(); | private $cacheKeys = array(); | ||||
public function withIDs(array $ids) { | public function withIDs(array $ids) { | ||||
$this->ids = $ids; | $this->ids = $ids; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function withPHIDs(array $phids) { | public function withPHIDs(array $phids) { | ||||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | if ($need) { | ||||
$this->cacheKeys[$cache_key] = true; | $this->cacheKeys[$cache_key] = true; | ||||
} else { | } else { | ||||
unset($this->cacheKeys[$cache_key]); | unset($this->cacheKeys[$cache_key]); | ||||
} | } | ||||
return $this; | return $this; | ||||
} | } | ||||
public function needBadgeAwards($need) { | |||||
$cache_key = PhabricatorUserBadgesCacheType::KEY_BADGES; | |||||
if ($need) { | |||||
$this->cacheKeys[$cache_key] = true; | |||||
} else { | |||||
unset($this->cacheKeys[$cache_key]); | |||||
} | |||||
return $this; | |||||
} | |||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorUser(); | return new PhabricatorUser(); | ||||
} | } | ||||
protected function loadPage() { | protected function loadPage() { | ||||
$table = new PhabricatorUser(); | $table = new PhabricatorUser(); | ||||
$data = $this->loadStandardPageRows($table); | $data = $this->loadStandardPageRows($table); | ||||
▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines |