Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engine/PhabricatorSearchEngineAPIMethod.php
Show All 26 Lines | abstract class PhabricatorSearchEngineAPIMethod | ||||
} | } | ||||
public function getApplication() { | public function getApplication() { | ||||
$engine = $this->newSearchEngine(); | $engine = $this->newSearchEngine(); | ||||
$class = $engine->getApplicationClassName(); | $class = $engine->getApplicationClassName(); | ||||
return PhabricatorApplication::getByClass($class); | return PhabricatorApplication::getByClass($class); | ||||
} | } | ||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_UNSTABLE; | |||||
} | |||||
public function getMethodStatusDescription() { | |||||
return pht( | |||||
'ApplicationSearch methods are fairly stable, but were introduced '. | |||||
'relatively recently and may continue to evolve as more applications '. | |||||
'adopt them.'); | |||||
} | |||||
final protected function defineParamTypes() { | final protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'queryKey' => 'optional string', | 'queryKey' => 'optional string', | ||||
'constraints' => 'optional map<string, wild>', | 'constraints' => 'optional map<string, wild>', | ||||
'attachments' => 'optional map<string, bool>', | 'attachments' => 'optional map<string, bool>', | ||||
'order' => 'optional order', | 'order' => 'optional order', | ||||
) + $this->getPagerParamTypes(); | ) + $this->getPagerParamTypes(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 557 Lines • Show Last 20 Lines |