Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112316296
DifferentialDependenciesField.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
Fri, May 9, 23:03
Size
834 B
Mime Type
text/x-php
Expires
Sun, May 11, 23:03 (2 d)
Engine
blob
Format
Raw Data
Handle
26068360
Attached To
rPH Phabricator
DifferentialDependenciesField.php
View Options
<?php
final
class
DifferentialDependenciesField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:dependencies'
;
}
public
function
getFieldName
()
{
return
pht
(
'Dependencies'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Lists revisions this one is depended on by.'
);
}
public
function
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewLabel
()
{
return
$this
->
getFieldName
();
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$this
->
getObject
()->
getPHID
(),
PhabricatorEdgeConfig
::
TYPE_DREV_DEPENDED_ON_BY_DREV
);
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
}
Event Timeline
Log In to Comment