Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97376807
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
Sat, Jan 4, 07:59
Size
840 B
Mime Type
text/x-php
Expires
Mon, Jan 6, 07:59 (2 d)
Engine
blob
Format
Raw Data
Handle
23396210
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