Differential D12380 Diff 29771 src/applications/diffusion/conduit/DiffusionFindSymbolsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionFindSymbolsConduitAPIMethod.php
<?php | <?php | ||||
final class DiffusionFindSymbolsConduitAPIMethod | final class DiffusionFindSymbolsConduitAPIMethod | ||||
extends DiffusionConduitAPIMethod { | extends DiffusionConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'diffusion.findsymbols'; | return 'diffusion.findsymbols'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Retrieve Diffusion symbol information.'; | return 'Retrieve Diffusion symbol information.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'name' => 'optional string', | 'name' => 'optional string', | ||||
'namePrefix' => 'optional string', | 'namePrefix' => 'optional string', | ||||
'context' => 'optional string', | 'context' => 'optional string', | ||||
'language' => 'optional string', | 'language' => 'optional string', | ||||
'type' => 'optional string', | 'type' => 'optional string', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty list<dict>'; | return 'nonempty list<dict>'; | ||||
} | } | ||||
public function defineErrorTypes() { | |||||
return array( | |||||
); | |||||
} | |||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$name = $request->getValue('name'); | $name = $request->getValue('name'); | ||||
$name_prefix = $request->getValue('namePrefix'); | $name_prefix = $request->getValue('namePrefix'); | ||||
$context = $request->getValue('context'); | $context = $request->getValue('context'); | ||||
$language = $request->getValue('language'); | $language = $request->getValue('language'); | ||||
$type = $request->getValue('type'); | $type = $request->getValue('type'); | ||||
$query = id(new DiffusionSymbolQuery()) | $query = id(new DiffusionSymbolQuery()) | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |