Page MenuHomec4science

PhabricatorQuickSearchEngineExtension.php
No OneTemporary

File Metadata

Created
Sat, Dec 28, 11:18

PhabricatorQuickSearchEngineExtension.php

<?php
abstract class PhabricatorQuickSearchEngineExtension extends Phobject {
abstract public function newQuickSearchDatasources();
final public static function getAllDatasources() {
$extensions = id(new PhutilClassMapQuery())
->setAncestorClass(__CLASS__)
->execute();
$datasources = array();
foreach ($extensions as $extension) {
$datasources[] = $extension->newQuickSearchDatasources();
}
return array_mergev($datasources);
}
}

Event Timeline