Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80663192
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
Sun, Sep 1, 23:22
Size
789 B
Mime Type
text/x-php
Expires
Tue, Sep 3, 23:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20415593
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