Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F469992
PhabricatorConfigSetupCheckModule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorConfigSetupCheckModule.php
View Options
<?php
final
class
PhabricatorConfigSetupCheckModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'setup'
;
}
public
function
getModuleName
()
{
return
pht
(
'Setup Checks'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$checks
=
PhabricatorSetupCheck
::
loadAllChecks
();
$rows
=
array
();
foreach
(
$checks
as
$key
=>
$check
)
{
if
(
$check
->
isPreflightCheck
())
{
$icon
=
id
(
new
PHUIIconView
())->
setIcon
(
'fa-plane blue'
);
}
else
{
$icon
=
id
(
new
PHUIIconView
())->
setIcon
(
'fa-times grey'
);
}
$rows
[]
=
array
(
$check
->
getExecutionOrder
(),
$icon
,
get_class
(
$check
),
);
}
return
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Order'
),
pht
(
'Preflight'
),
pht
(
'Class'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
'pri wide'
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 10:11 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
81782
Default Alt Text
PhabricatorConfigSetupCheckModule.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment