Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104853548
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
Wed, Mar 12, 22:02
Size
677 B
Mime Type
text/x-php
Expires
Fri, Mar 14, 22:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24864985
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
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewLabel
()
{
return
$this
->
getFieldName
();
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
$path
=
$this
->
getObject
()->
getActiveDiff
()->
getSourcePath
();
if
(!
$path
)
{
return
null
;
}
return
$path
;
}
}
Event Timeline
Log In to Comment