Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1001453
DifferentialDependenciesFieldSpecification.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
947 B
Referenced Files
None
Subscribers
None
DifferentialDependenciesFieldSpecification.php
View Options
<?php
final
class
DifferentialDependenciesFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnRevisionView
()
{
return
true
;
}
public
function
getRequiredHandlePHIDsForRevisionView
()
{
return
$this
->
getDependentRevisionPHIDs
();
}
public
function
renderLabelForRevisionView
()
{
return
'Dependents:'
;
}
public
function
renderValueForRevisionView
()
{
$revision_phids
=
$this
->
getDependentRevisionPHIDs
();
if
(!
$revision_phids
)
{
return
null
;
}
$links
=
array
();
foreach
(
$revision_phids
as
$revision_phids
)
{
$links
[]
=
$this
->
getHandle
(
$revision_phids
)->
renderLink
();
}
return
array_interleave
(
phutil_tag
(
'br'
),
$links
);
}
private
function
getDependentRevisionPHIDs
()
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$this
->
getRevision
()->
getPHID
(),
PhabricatorEdgeConfig
::
TYPE_DREV_DEPENDED_ON_BY_DREV
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 19, 5:10 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
234871
Default Alt Text
DifferentialDependenciesFieldSpecification.php (947 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment