Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99124689
PhabricatorHovercardEngineExtensionModule.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
Mon, Jan 20, 17:46
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Jan 22, 17:46 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23703011
Attached To
rPH Phabricator
PhabricatorHovercardEngineExtensionModule.php
View Options
<?php
final
class
PhabricatorHovercardEngineExtensionModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'hovercardengine'
;
}
public
function
getModuleName
()
{
return
pht
(
'Engine: Hovercards'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$extensions
=
PhabricatorHovercardEngineExtension
::
getAllExtensions
();
$rows
=
array
();
foreach
(
$extensions
as
$extension
)
{
$rows
[]
=
array
(
$extension
->
getExtensionOrder
(),
$extension
->
getExtensionKey
(),
get_class
(
$extension
),
$extension
->
getExtensionName
(),
$extension
->
isExtensionEnabled
()
?
pht
(
'Yes'
)
:
pht
(
'No'
),
);
}
return
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Order'
),
pht
(
'Key'
),
pht
(
'Class'
),
pht
(
'Name'
),
pht
(
'Enabled'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
null
,
'wide pri'
,
null
,
));
}
}
Event Timeline
Log In to Comment