[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ConduitQueryConduitAPIMethod extends ConduitAPIMethod { 4 5 public function getAPIMethodName() { 6 return 'conduit.query'; 7 } 8 9 public function getMethodDescription() { 10 return 'Returns the parameters of the Conduit methods.'; 11 } 12 13 public function defineParamTypes() { 14 return array(); 15 } 16 17 public function defineReturnType() { 18 return 'dict<dict>'; 19 } 20 21 public function defineErrorTypes() { 22 return array(); 23 } 24 25 protected function execute(ConduitAPIRequest $request) { 26 $classes = id(new PhutilSymbolLoader()) 27 ->setAncestorClass('ConduitAPIMethod') 28 ->setType('class') 29 ->loadObjects(); 30 31 $names_to_params = array(); 32 foreach ($classes as $class) { 33 $names_to_params[$class->getAPIMethodName()] = array( 34 'params' => $class->defineParamTypes(), 35 ); 36 } 37 38 return $names_to_params; 39 } 40 41 }
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 |