3 final class PHIDQueryConduitAPIMethod
extends PHIDConduitAPIMethod
{
5 public function getAPIMethodName() {
9 public function getMethodDescription() {
10 return pht('Retrieve information about arbitrary PHIDs.');
13 protected function defineParamTypes() {
15 'phids' => 'required list<phid>',
19 protected function defineReturnType() {
20 return 'nonempty dict<string, wild>';
23 protected function execute(ConduitAPIRequest
$request) {
24 $phids = $request->getValue('phids');
26 $handles = id(new PhabricatorHandleQuery())
27 ->setViewer($request->getUser())
32 foreach ($handles as $phid => $handle) {
33 if ($handle->isComplete()) {
34 $result[$phid] = $this->buildHandleInformationDictionary($handle);