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