Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F477011
DifferentialRevisionGraph.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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_name
=
$object
->
getStatusDisplayName
();
$status
=
array
(
id
(
new
PHUIIconView
())->
setIcon
(
$status_icon
),
' '
,
$status_name
,
);
$author
=
$viewer
->
renderHandle
(
$object
->
getAuthorPHID
());
$link
=
phutil_tag
(
'a'
,
array
(
'href'
=>
$object
->
getURI
(),
),
array
(
$object
->
getMonogram
(),
' '
,
$object
->
getTitle
(),
));
}
else
{
$status
=
null
;
$author
=
null
;
$link
=
$viewer
->
renderHandle
(
$phid
);
}
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 object-link'
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 7, 6:27 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87003
Default Alt Text
DifferentialRevisionGraph.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment