Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100153076
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
Tue, Jan 28, 14:22
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Jan 30, 14:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23911093
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