Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112079018
DifferentialDependsOnField.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
Wed, May 7, 13:03
Size
1001 B
Mime Type
text/x-php
Expires
Fri, May 9, 13:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26012675
Attached To
rPH Phabricator
DifferentialDependsOnField.php
View Options
<?php
final
class
DifferentialDependsOnField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:depends-on'
;
}
public
function
getFieldName
()
{
return
pht
(
'Depends On'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Lists revisions this one depends on.'
);
}
public
function
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewLabel
()
{
return
$this
->
getFieldName
();
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$this
->
getObject
()->
getPHID
(),
PhabricatorEdgeConfig
::
TYPE_DREV_DEPENDS_ON_DREV
);
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
public
function
getProTips
()
{
return
array
(
pht
(
'Create a dependendency between revisions by writing '
.
'"Depends on D123" in your summary.'
),
);
}
}
Event Timeline
Log In to Comment