Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96347315
ReleephBranchCommitFieldSpecification.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
Wed, Dec 25, 16:56
Size
579 B
Mime Type
text/x-php
Expires
Fri, Dec 27, 16:56 (1 d, 12 h)
Engine
blob
Format
Raw Data
Handle
23169200
Attached To
rPH Phabricator
ReleephBranchCommitFieldSpecification.php
View Options
<?php
final
class
ReleephBranchCommitFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getName
()
{
return
'Commit'
;
}
public
function
renderValueForHeaderView
()
{
$rr
=
$this
->
getReleephRequest
();
if
(!
$rr
->
getInBranch
())
{
return
null
;
}
$c_phid
=
$rr
->
getCommitPHID
();
$c_id
=
$rr
->
getCommitIdentifier
();
if
(
$c_phid
)
{
$handles
=
$rr
->
getHandles
();
$val
=
$handles
[
$c_phid
]->
renderLink
();
}
else
if
(
$c_id
)
{
$val
=
$c_id
;
}
else
{
$val
=
'???'
;
}
return
$val
;
}
}
Event Timeline
Log In to Comment