Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96173561
DifferentialParentRevisionsField.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
Mon, Dec 23, 11:01
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 25, 11:01 (2 d)
Engine
blob
Format
Raw Data
Handle
23138214
Attached To
rPH Phabricator
DifferentialParentRevisionsField.php
View Options
<?php
final
class
DifferentialParentRevisionsField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:depends-on'
;
}
public
function
getFieldKeyForConduit
()
{
return
'phabricator:depends-on'
;
}
public
function
getFieldName
()
{
return
pht
(
'Parent Revisions'
);
}
public
function
canDisableField
()
{
return
false
;
}
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
(),
DifferentialRevisionDependsOnRevisionEdgeType
::
EDGECONST
);
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
public
function
getProTips
()
{
return
array
(
pht
(
'Create a dependency between revisions by writing '
.
'"%s" in your summary.'
,
'Depends on D123'
),
);
}
public
function
shouldAppearInConduitDictionary
()
{
return
true
;
}
public
function
getConduitDictionaryValue
()
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$this
->
getObject
()->
getPHID
(),
DifferentialRevisionDependsOnRevisionEdgeType
::
EDGECONST
);
}
}
Event Timeline
Log In to Comment