Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108079185
PhabricatorDestructionEngineExtensionModule.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, Apr 14, 00:51
Size
840 B
Mime Type
text/x-php
Expires
Wed, Apr 16, 00:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25518404
Attached To
rPH Phabricator
PhabricatorDestructionEngineExtensionModule.php
View Options
<?php
final
class
PhabricatorDestructionEngineExtensionModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'destructionengine'
;
}
public
function
getModuleName
()
{
return
pht
(
'Engine: Destruction'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$extensions
=
PhabricatorDestructionEngineExtension
::
getAllExtensions
();
$rows
=
array
();
foreach
(
$extensions
as
$extension
)
{
$rows
[]
=
array
(
get_class
(
$extension
),
$extension
->
getExtensionName
(),
);
}
return
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Class'
),
pht
(
'Name'
),
))
->
setColumnClasses
(
array
(
null
,
'wide pri'
,
));
}
}
Event Timeline
Log In to Comment