Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102387499
DifferentialAuthorFieldSpecification.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
Thu, Feb 20, 04:24
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Feb 22, 04:24 (2 d)
Engine
blob
Format
Raw Data
Handle
24343838
Attached To
rPH Phabricator
DifferentialAuthorFieldSpecification.php
View Options
<?php
final
class
DifferentialAuthorFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnRevisionView
()
{
return
true
;
}
public
function
getRequiredHandlePHIDsForRevisionView
()
{
return
array
(
$this
->
getAuthorPHID
());
}
public
function
renderLabelForRevisionView
()
{
return
'Author:'
;
}
public
function
renderValueForRevisionView
()
{
return
$this
->
renderUserList
(
array
(
$this
->
getAuthorPHID
()));
}
private
function
getAuthorPHID
()
{
$revision
=
$this
->
getRevision
();
return
$revision
->
getAuthorPHID
();
}
public
function
shouldAppearOnRevisionList
()
{
return
true
;
}
public
function
renderHeaderForRevisionList
()
{
return
'Author'
;
}
public
function
renderValueForRevisionList
(
DifferentialRevision
$revision
)
{
return
$this
->
getHandle
(
$revision
->
getAuthorPHID
())->
renderLink
();
}
public
function
getRequiredHandlePHIDsForRevisionList
(
DifferentialRevision
$revision
)
{
return
array
(
$revision
->
getAuthorPHID
());
}
}
Event Timeline
Log In to Comment