Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93449099
ReleephDependsOnFieldSpecification.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 28, 20:37
Size
846 B
Mime Type
text/x-php
Expires
Sat, Nov 30, 20:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22640879
Attached To
rPH Phabricator
ReleephDependsOnFieldSpecification.php
View Options
<?php
final
class
ReleephDependsOnFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getFieldKey
()
{
return
'dependsOn'
;
}
public
function
getName
()
{
return
pht
(
'Depends On'
);
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
return
$this
->
getDependentRevisionPHIDs
();
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
private
function
getDependentRevisionPHIDs
()
{
$requested_object
=
$this
->
getObject
()->
getRequestedObjectPHID
();
if
(!(
$requested_object
instanceof
DifferentialRevision
))
{
return
array
();
}
$revision
=
$requested_object
;
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$revision
->
getPHID
(),
DifferentialRevisionDependsOnRevisionEdgeType
::
EDGECONST
);
}
}
Event Timeline
Log In to Comment