Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93166894
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
Tue, Nov 26, 17:36
Size
789 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 17:36 (2 d)
Engine
blob
Format
Raw Data
Handle
22585033
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