Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/query/PhortuneAccountQuery.php
Show All 40 Lines | public function withMemberPHIDs(array $phids) { | ||||
$this->memberPHIDs = $phids; | $this->memberPHIDs = $phids; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhortuneAccount(); | return new PhortuneAccount(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $accounts) { | protected function willFilterPage(array $accounts) { | ||||
$query = id(new PhabricatorEdgeQuery()) | $query = id(new PhabricatorEdgeQuery()) | ||||
->withSourcePHIDs(mpull($accounts, 'getPHID')) | ->withSourcePHIDs(mpull($accounts, 'getPHID')) | ||||
->withEdgeTypes( | ->withEdgeTypes( | ||||
array( | array( | ||||
PhortuneAccountHasMemberEdgeType::EDGECONST, | PhortuneAccountHasMemberEdgeType::EDGECONST, | ||||
PhortuneAccountHasMerchantEdgeType::EDGECONST, | PhortuneAccountHasMerchantEdgeType::EDGECONST, | ||||
)); | )); | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |