[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class DiffusionResolveRefsConduitAPIMethod 4 extends DiffusionQueryConduitAPIMethod { 5 6 public function getAPIMethodName() { 7 return 'diffusion.resolverefs'; 8 } 9 10 public function getMethodDescription() { 11 return pht('Resolve references into stable, canonical identifiers.'); 12 } 13 14 public function defineReturnType() { 15 return 'dict<string, list<dict<string, wild>>>'; 16 } 17 18 protected function defineCustomParamTypes() { 19 return array( 20 'refs' => 'required list<string>', 21 ); 22 } 23 24 protected function getResult(ConduitAPIRequest $request) { 25 $refs = $request->getValue('refs'); 26 27 return id(new DiffusionLowLevelResolveRefsQuery()) 28 ->setRepository($this->getDiffusionRequest()->getRepository()) 29 ->withRefs($refs) 30 ->execute(); 31 } 32 33 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |