Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97581749
PhabricatorDatasourceEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 5, 11:07
Size
1003 B
Mime Type
text/x-php
Expires
Tue, Jan 7, 11:07 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23430738
Attached To
rPH Phabricator
PhabricatorDatasourceEngineExtension.php
View Options
<?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
);
}
}
Event Timeline
Log In to Comment