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