Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91065820
DifferentialRevisionGraph.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
Thu, Nov 7, 12:31
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Nov 9, 12:31 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22189302
Attached To
rPH Phabricator
DifferentialRevisionGraph.php
View Options
<?php
final
class
DifferentialRevisionGraph
extends
PhabricatorObjectGraph
{
protected
function
getEdgeTypes
()
{
return
array
(
DifferentialRevisionDependsOnRevisionEdgeType
::
EDGECONST
,
DifferentialRevisionDependedOnByRevisionEdgeType
::
EDGECONST
,
);
}
protected
function
getParentEdgeType
()
{
return
DifferentialRevisionDependsOnRevisionEdgeType
::
EDGECONST
;
}
protected
function
newQuery
()
{
return
new
DifferentialRevisionQuery
();
}
protected
function
isClosed
(
$object
)
{
return
$object
->
isClosed
();
}
protected
function
newTableRow
(
$phid
,
$object
,
$trace
)
{
$viewer
=
$this
->
getViewer
();
if
(
$object
)
{
$status_icon
=
$object
->
getStatusIcon
();
$status_color
=
$object
->
getStatusIconColor
();
$status_name
=
$object
->
getStatusDisplayName
();
$status
=
array
(
id
(
new
PHUIIconView
())
->
setIcon
(
$status_icon
,
$status_color
),
' '
,
$status_name
,
);
$author
=
$viewer
->
renderHandle
(
$object
->
getAuthorPHID
());
$link
=
phutil_tag
(
'a'
,
array
(
'href'
=>
$object
->
getURI
(),
),
$object
->
getTitle
());
$link
=
array
(
$object
->
getMonogram
(),
' '
,
$link
,
);
}
else
{
$status
=
null
;
$author
=
null
;
$link
=
$viewer
->
renderHandle
(
$phid
);
}
$link
=
AphrontTableView
::
renderSingleDisplayLine
(
$link
);
return
array
(
$trace
,
$status
,
$author
,
$link
,
);
}
protected
function
newTable
(
AphrontTableView
$table
)
{
return
$table
->
setHeaders
(
array
(
null
,
pht
(
'Status'
),
pht
(
'Author'
),
pht
(
'Revision'
),
))
->
setColumnClasses
(
array
(
'threads'
,
'graph-status'
,
null
,
'wide pri object-link'
,
));
}
}
Event Timeline
Log In to Comment