Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F436159
PhabricatorConfigEdgeModule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1004 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
),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Constant'
),
pht
(
'Inverse'
),
pht
(
'Class'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
'pri wide'
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'Edge Types'
))
->
appendChild
(
$table
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 10:25 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
61536
Default Alt Text
PhabricatorConfigEdgeModule.php (1004 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment