Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90404250
DifferentialHostField.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 1, 09:22
Size
912 B
Mime Type
text/x-php
Expires
Sun, Nov 3, 09:22 (2 d)
Engine
blob
Format
Raw Data
Handle
22070027
Attached To
rPH Phabricator
DifferentialHostField.php
View Options
<?php
final
class
DifferentialHostField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:host'
;
}
public
function
getFieldName
()
{
return
pht
(
'Host'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Shows the local host 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
)
{
$host
=
$diff
->
getSourceMachine
();
if
(!
$host
)
{
return
null
;
}
return
$host
;
}
}
Event Timeline
Log In to Comment