3 abstract class PhabricatorDatasourceEngineExtension
extends Phobject
{
7 final public function setViewer(PhabricatorUser
$viewer) {
8 $this->viewer
= $viewer;
12 final public function getViewer() {
16 public function newQuickSearchDatasources() {
20 public function newJumpURI($query) {
24 public function newDatasourcesForCompositeDatasource(
25 PhabricatorTypeaheadCompositeDatasource
$datasource) {
29 final public static function getAllExtensions() {
30 return id(new PhutilClassMapQuery())
31 ->setAncestorClass(__CLASS__
)
35 final public static function getAllQuickSearchDatasources() {
36 $extensions = self
::getAllExtensions();
38 $datasources = array();
39 foreach ($extensions as $extension) {
40 $datasources[] = $extension->newQuickSearchDatasources();
43 return array_mergev($datasources);