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