Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/query/PhabricatorOwnersPackageQuery.php
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | final class PhabricatorOwnersPackageQuery | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorOwnersPackage(); | return new PhabricatorOwnersPackage(); | ||||
} | } | ||||
protected function willExecute() { | protected function willExecute() { | ||||
$this->controlResults = array(); | $this->controlResults = array(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $packages) { | protected function willFilterPage(array $packages) { | ||||
$package_ids = mpull($packages, 'getID'); | $package_ids = mpull($packages, 'getID'); | ||||
$owners = id(new PhabricatorOwnersOwner())->loadAllWhere( | $owners = id(new PhabricatorOwnersOwner())->loadAllWhere( | ||||
'packageID IN (%Ld)', | 'packageID IN (%Ld)', | ||||
$package_ids); | $package_ids); | ||||
$owners = mgroup($owners, 'getPackageID'); | $owners = mgroup($owners, 'getPackageID'); | ||||
foreach ($packages as $package) { | foreach ($packages as $package) { | ||||
▲ Show 20 Lines • Show All 348 Lines • Show Last 20 Lines |