Differential D21838 Diff 52051 src/applications/repository/query/PhabricatorRepositoryRefCursorQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/query/PhabricatorRepositoryRefCursorQuery.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function needPositions($need) { | ||||
$this->needPositions = $need; | $this->needPositions = $need; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorRepositoryRefCursor(); | return new PhabricatorRepositoryRefCursor(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $refs) { | protected function willFilterPage(array $refs) { | ||||
$repository_phids = mpull($refs, 'getRepositoryPHID'); | $repository_phids = mpull($refs, 'getRepositoryPHID'); | ||||
$repositories = id(new PhabricatorRepositoryQuery()) | $repositories = id(new PhabricatorRepositoryQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->withPHIDs($repository_phids) | ->withPHIDs($repository_phids) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |