Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/module/PhabricatorConfigSiteModule.php
12256 views
1
<?php
2
3
final class PhabricatorConfigSiteModule extends PhabricatorConfigModule {
4
5
public function getModuleKey() {
6
return 'site';
7
}
8
9
public function getModuleName() {
10
return pht('Sites');
11
}
12
13
public function renderModuleStatus(AphrontRequest $request) {
14
$viewer = $request->getViewer();
15
16
$sites = AphrontSite::getAllSites();
17
18
$rows = array();
19
foreach ($sites as $key => $site) {
20
$rows[] = array(
21
$site->getPriority(),
22
$key,
23
$site->getDescription(),
24
);
25
}
26
27
return id(new AphrontTableView($rows))
28
->setHeaders(
29
array(
30
pht('Priority'),
31
pht('Class'),
32
pht('Description'),
33
))
34
->setColumnClasses(
35
array(
36
null,
37
'pri',
38
'wide',
39
));
40
}
41
42
}
43
44