Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97595361
PhabricatorEditEngineExtensionModule.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
Sun, Jan 5, 14:00
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jan 7, 14:00 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23358901
Attached To
rPH Phabricator
PhabricatorEditEngineExtensionModule.php
View Options
<?php
final
class
PhabricatorEditEngineExtensionModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'editengine'
;
}
public
function
getModuleName
()
{
return
pht
(
'Engine: Edit'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$extensions
=
PhabricatorEditEngineExtension
::
getAllExtensions
();
$rows
=
array
();
foreach
(
$extensions
as
$extension
)
{
$rows
[]
=
array
(
$extension
->
getExtensionPriority
(),
get_class
(
$extension
),
$extension
->
getExtensionName
(),
$extension
->
isExtensionEnabled
()
?
pht
(
'Yes'
)
:
pht
(
'No'
),
);
}
return
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Priority'
),
pht
(
'Class'
),
pht
(
'Name'
),
pht
(
'Enabled'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
'wide pri'
,
null
,
));
}
}
Event Timeline
Log In to Comment