Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98228386
DifferentialPathField.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
Sat, Jan 11, 06:32
Size
909 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 06:32 (2 d)
Engine
blob
Format
Raw Data
Handle
23538463
Attached To
rPH Phabricator
DifferentialPathField.php
View Options
<?php
final
class
DifferentialPathField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:path'
;
}
public
function
getFieldName
()
{
return
pht
(
'Path'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Shows the local path where the diff came from.'
);
}
public
function
shouldDisableByDefault
()
{
return
true
;
}
public
function
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
null
;
}
public
function
shouldAppearInDiffPropertyView
()
{
return
true
;
}
public
function
renderDiffPropertyViewLabel
(
DifferentialDiff
$diff
)
{
return
$this
->
getFieldName
();
}
public
function
renderDiffPropertyViewValue
(
DifferentialDiff
$diff
)
{
$path
=
$diff
->
getSourcePath
();
if
(!
$path
)
{
return
null
;
}
return
$path
;
}
}
Event Timeline
Log In to Comment