Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1156037
DifferentialParentRevisionsField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 1, 9:31 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
288379
Default Alt Text
DifferentialParentRevisionsField.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment