Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92699415
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
Fri, Nov 22, 21:54
Size
789 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 21:54 (2 d)
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