Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119668733
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
Sat, Jun 28, 10:29
Size
775 B
Mime Type
text/x-php
Expires
Mon, Jun 30, 10:29 (2 d)
Engine
blob
Format
Raw Data
Handle
27051503
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
()
{
$revision
=
$this
->
getReleephRequest
()
->
loadDifferentialRevision
();
if
(!
$revision
)
{
return
array
();
}
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$revision
->
getPHID
(),
PhabricatorEdgeConfig
::
TYPE_DREV_DEPENDS_ON_DREV
);
}
}
Event Timeline
Log In to Comment