Page MenuHomePhorge

PhabricatorDatasourceEngineExtension.php
No OneTemporary

PhabricatorDatasourceEngineExtension.php

<?php
abstract class PhabricatorDatasourceEngineExtension extends Phobject {
private $viewer;
final public function setViewer(PhabricatorUser $viewer) {
$this->viewer = $viewer;
return $this;
}
final public function getViewer() {
return $this->viewer;
}
public function newQuickSearchDatasources() {
return array();
}
public function newJumpURI($query) {
return null;
}
public function newDatasourcesForCompositeDatasource(
PhabricatorTypeaheadCompositeDatasource $datasource) {
return array();
}
final public static function getAllExtensions() {
return id(new PhutilClassMapQuery())
->setAncestorClass(__CLASS__)
->execute();
}
final public static function getAllQuickSearchDatasources() {
$extensions = self::getAllExtensions();
$datasources = array();
foreach ($extensions as $extension) {
$datasources[] = $extension->newQuickSearchDatasources();
}
return array_mergev($datasources);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 19:14 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127859
Default Alt Text
PhabricatorDatasourceEngineExtension.php (1003 B)

Event Timeline