Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92734860
DifferentialAuthorField.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, Nov 23, 06:34
Size
789 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 06:34 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
22489552
Attached To
rPH Phabricator
DifferentialAuthorField.php
View Options
<?php
final
class
DifferentialAuthorField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:author'
;
}
public
function
getFieldName
()
{
return
pht
(
'Author'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Stores the revision author.'
);
}
public
function
canDisableField
()
{
return
false
;
}
public
function
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewLabel
()
{
return
$this
->
getFieldName
();
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
return
array
(
$this
->
getObject
()->
getAuthorPHID
());
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$handles
[
$this
->
getObject
()->
getAuthorPHID
()]->
renderLink
();
}
}
Event Timeline
Log In to Comment