Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F573155
DiffusionCommitBranchesHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
838 B
Referenced Files
None
Subscribers
None
DiffusionCommitBranchesHeraldField.php
View Options
<?php
final
class
DiffusionCommitBranchesHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.branches'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Branches'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$viewer
=
$this
->
getAdapter
()->
getViewer
();
$commit
=
$object
;
$repository
=
$object
->
getRepository
();
$params
=
array
(
'repository'
=>
$repository
->
getPHID
(),
'contains'
=>
$commit
->
getCommitIdentifier
(),
);
$result
=
id
(
new
ConduitCall
(
'diffusion.branchquery'
,
$params
))
->
setUser
(
$viewer
)
->
execute
();
$refs
=
DiffusionRepositoryRef
::
loadAllFromDictionaries
(
$result
);
return
mpull
(
$refs
,
'getShortName'
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_TEXT_LIST
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 5:43 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
101908
Default Alt Text
DiffusionCommitBranchesHeraldField.php (838 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment