Differential D14268 Diff 34547 src/applications/search/controller/PhabricatorSearchHovercardController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/controller/PhabricatorSearchHovercardController.php
<?php | <?php | ||||
final class PhabricatorSearchHovercardController | final class PhabricatorSearchHovercardController | ||||
extends PhabricatorSearchBaseController { | extends PhabricatorSearchBaseController { | ||||
public function shouldAllowPublic() { | public function shouldAllowPublic() { | ||||
return true; | return true; | ||||
} | } | ||||
public function handleRequest(AphrontRequest $request) { | public function handleRequest(AphrontRequest $request) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$phids = $request->getArr('phids'); | $phids = $request->getArr('phids'); | ||||
$handles = id(new PhabricatorHandleQuery()) | $handles = id(new PhabricatorHandleQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs($phids) | ->withPHIDs($phids) | ||||
->execute(); | ->execute(); | ||||
$objects = id(new PhabricatorObjectQuery()) | $objects = id(new PhabricatorObjectQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |