Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94235775
PhabricatorConfigSetupCheckModule.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
Thu, Dec 5, 00:16
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Dec 7, 00:16 (2 d)
Engine
blob
Format
Raw Data
Handle
22766217
Attached To
rPH Phabricator
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'
,
));
}
}
Event Timeline
Log In to Comment