Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98644946
PhabricatorConfigEdgeModule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 15, 05:25
Size
1001 B
Mime Type
text/x-php
Expires
Fri, Jan 17, 05:25 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23613530
Attached To
rPH Phabricator
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'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment