Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894009
PhabricatorDatasourceEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1003 B
Referenced Files
None
Subscribers
None
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
)
;
}
}
File Metadata
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment