Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionSymbolController.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
if ($request->getStr('path')) { | if ($request->getStr('path')) { | ||||
$external_query->withPaths(array($request->getStr('path'))); | $external_query->withPaths(array($request->getStr('path'))); | ||||
} | } | ||||
if ($request->getInt('line')) { | if ($request->getInt('line')) { | ||||
$external_query->withLines(array($request->getInt('line'))); | $external_query->withLines(array($request->getInt('line'))); | ||||
} | } | ||||
if ($request->getInt('char')) { | |||||
$external_query->withCharacterPositions( | |||||
array( | |||||
$request->getInt('char'), | |||||
)); | |||||
} | |||||
if ($repos) { | if ($repos) { | ||||
$external_query->withRepositories($repos); | $external_query->withRepositories($repos); | ||||
} | } | ||||
$external_sources = id(new PhutilClassMapQuery()) | $external_sources = id(new PhutilClassMapQuery()) | ||||
->setAncestorClass('DiffusionExternalSymbolsSource') | ->setAncestorClass('DiffusionExternalSymbolsSource') | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |