Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122584418
ReleephAuthorFieldSpecification.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, Jul 20, 19:15
Size
665 B
Mime Type
text/x-php
Expires
Tue, Jul 22, 19:15 (2 d)
Engine
blob
Format
Raw Data
Handle
27509627
Attached To
rPH Phabricator
ReleephAuthorFieldSpecification.php
View Options
<?php
final
class
ReleephAuthorFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getFieldKey
()
{
return
'author'
;
}
public
function
getName
()
{
return
pht
(
'Author'
);
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
$pull
=
$this
->
getReleephRequest
();
$commit
=
$pull
->
loadPhabricatorRepositoryCommit
();
if
(!
$commit
)
{
return
array
();
}
$author_phid
=
$commit
->
getAuthorPHID
();
if
(!
$author_phid
)
{
return
array
();
}
return
array
(
$author_phid
);
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
}
Event Timeline
Log In to Comment