Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F545981
PhabricatorConfigEdgeModule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
892 B
Referenced Files
None
Subscribers
None
PhabricatorConfigEdgeModule.php
View Options
<?php
final
class
PhabricatorConfigEdgeModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'edge'
;
}
public
function
getModuleName
()
{
return
pht
(
'Edge Types'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$types
=
PhabricatorEdgeType
::
getAllTypes
();
$types
=
msort
(
$types
,
'getEdgeConstant'
);
$rows
=
array
();
foreach
(
$types
as
$key
=>
$type
)
{
$rows
[]
=
array
(
$type
->
getEdgeConstant
(),
$type
->
getInverseEdgeConstant
(),
get_class
(
$type
),
);
}
return
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Constant'
),
pht
(
'Inverse'
),
pht
(
'Class'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
'pri wide'
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:05 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
107847
Default Alt Text
PhabricatorConfigEdgeModule.php (892 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment