Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/query/PhabricatorExternalAccountQuery.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | public function withRawAccountIdentifiers(array $identifiers) { | ||||
$this->rawAccountIdentifiers = $identifiers; | $this->rawAccountIdentifiers = $identifiers; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorExternalAccount(); | return new PhabricatorExternalAccount(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $accounts) { | protected function willFilterPage(array $accounts) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$configs = id(new PhabricatorAuthProviderConfigQuery()) | $configs = id(new PhabricatorAuthProviderConfigQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs(mpull($accounts, 'getProviderConfigPHID')) | ->withPHIDs(mpull($accounts, 'getProviderConfigPHID')) | ||||
->execute(); | ->execute(); | ||||
$configs = mpull($configs, null, 'getPHID'); | $configs = mpull($configs, null, 'getPHID'); | ||||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |