Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/module/PhabricatorConfigSetupCheckModule.php
12256 views
1
<?php
2
3
final class PhabricatorConfigSetupCheckModule
4
extends PhabricatorConfigModule {
5
6
public function getModuleKey() {
7
return 'setup';
8
}
9
10
public function getModuleName() {
11
return pht('Setup Checks');
12
}
13
14
public function renderModuleStatus(AphrontRequest $request) {
15
$viewer = $request->getViewer();
16
17
$checks = PhabricatorSetupCheck::loadAllChecks();
18
19
$rows = array();
20
foreach ($checks as $key => $check) {
21
if ($check->isPreflightCheck()) {
22
$icon = id(new PHUIIconView())->setIcon('fa-plane blue');
23
} else {
24
$icon = id(new PHUIIconView())->setIcon('fa-times grey');
25
}
26
27
$rows[] = array(
28
$check->getExecutionOrder(),
29
$icon,
30
get_class($check),
31
);
32
}
33
34
return id(new AphrontTableView($rows))
35
->setHeaders(
36
array(
37
pht('Order'),
38
pht('Preflight'),
39
pht('Class'),
40
))
41
->setColumnClasses(
42
array(
43
null,
44
null,
45
'pri wide',
46
));
47
}
48
49
}
50
51