Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92699153
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
Fri, Nov 22, 21:50
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 21:50 (2 d)
Engine
blob
Format
Raw Data
Handle
22478666
Attached To
rPH Phabricator
DifferentialDependsOnField.php
View Options
<?php
final
class
DifferentialDependsOnField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:depends-on'
;
}
public
function
getFieldKeyForConduit
()
{
return
'phabricator:depends-on'
;
}
public
function
getFieldName
()
{
return
pht
(
'Depends On'
);
}
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