Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93225960
PhabricatorSearchEngineExtensionModule.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
Wed, Nov 27, 04:12
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Nov 29, 04:12 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22599207
Attached To
rPH Phabricator
PhabricatorSearchEngineExtensionModule.php
View Options
<?php
final
class
PhabricatorSearchEngineExtensionModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'searchengine'
;
}
public
function
getModuleName
()
{
return
pht
(
'Engine: Search'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$extensions
=
PhabricatorSearchEngineExtension
::
getAllExtensions
();
$rows
=
array
();
foreach
(
$extensions
as
$extension
)
{
$rows
[]
=
array
(
$extension
->
getExtensionOrder
(),
$extension
->
getExtensionKey
(),
get_class
(
$extension
),
$extension
->
getExtensionName
(),
$extension
->
isExtensionEnabled
()
?
pht
(
'Yes'
)
:
pht
(
'No'
),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Order'
),
pht
(
'Key'
),
pht
(
'Class'
),
pht
(
'Name'
),
pht
(
'Enabled'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
null
,
'wide pri'
,
null
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'SearchEngine Extensions'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment