Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92735123
PhabricatorFulltextEngineExtensionModule.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
Sat, Nov 23, 06:37
Size
951 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 06:37 (2 d)
Engine
blob
Format
Raw Data
Handle
22501058
Attached To
rPH Phabricator
PhabricatorFulltextEngineExtensionModule.php
View Options
<?php
final
class
PhabricatorFulltextEngineExtensionModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'fulltextengine'
;
}
public
function
getModuleName
()
{
return
pht
(
'Engine: Fulltext'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$extensions
=
PhabricatorFulltextEngineExtension
::
getAllExtensions
();
$rows
=
array
();
foreach
(
$extensions
as
$extension
)
{
$rows
[]
=
array
(
get_class
(
$extension
),
$extension
->
getExtensionName
(),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Class'
),
pht
(
'Name'
),
))
->
setColumnClasses
(
array
(
null
,
'wide pri'
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'FulltextEngine Extensions'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment