Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/query/PhabricatorAuthSSHKeyQuery.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public function withIsActive($active) { | ||||
$this->isActive = $active; | $this->isActive = $active; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorAuthSSHKey(); | return new PhabricatorAuthSSHKey(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $keys) { | protected function willFilterPage(array $keys) { | ||||
$object_phids = mpull($keys, 'getObjectPHID'); | $object_phids = mpull($keys, 'getObjectPHID'); | ||||
$objects = id(new PhabricatorObjectQuery()) | $objects = id(new PhabricatorObjectQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->setParentQuery($this) | ->setParentQuery($this) | ||||
->withPHIDs($object_phids) | ->withPHIDs($object_phids) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |