Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F998289
DifferentialDependsOnFieldSpecification.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
940 B
Referenced Files
None
Subscribers
None
DifferentialDependsOnFieldSpecification.php
View Options
<?php
final
class
DifferentialDependsOnFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnRevisionView
()
{
return
true
;
}
public
function
getRequiredHandlePHIDsForRevisionView
()
{
return
$this
->
getDependentRevisionPHIDs
();
}
public
function
renderLabelForRevisionView
()
{
return
'Depends On:'
;
}
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_DEPENDS_ON_DREV
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 19, 2:55 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
242462
Default Alt Text
DifferentialDependsOnFieldSpecification.php (940 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment