[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class DiffusionCommitParentsQueryConduitAPIMethod 4 extends DiffusionQueryConduitAPIMethod { 5 6 public function getAPIMethodName() { 7 return 'diffusion.commitparentsquery'; 8 } 9 10 public function getMethodDescription() { 11 return pht( 12 "Get the commit identifiers for a commit's parent or parents."); 13 } 14 15 public function defineReturnType() { 16 return 'list<string>'; 17 } 18 19 protected function defineCustomParamTypes() { 20 return array( 21 'commit' => 'required string', 22 ); 23 } 24 25 protected function getResult(ConduitAPIRequest $request) { 26 $repository = $this->getRepository($request); 27 28 return id(new DiffusionLowLevelParentsQuery()) 29 ->setRepository($repository) 30 ->withIdentifier($request->getValue('commit')) 31 ->execute(); 32 } 33 34 }
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 |