Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99941140
ManiphestTaskHasCommitRelationship.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
Mon, Jan 27, 09:24
Size
990 B
Mime Type
text/x-php
Expires
Wed, Jan 29, 09:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23854036
Attached To
rPH Phabricator
ManiphestTaskHasCommitRelationship.php
View Options
<?php
final
class
ManiphestTaskHasCommitRelationship
extends
ManiphestTaskRelationship
{
const
RELATIONSHIPKEY
=
'task.has-commit'
;
public
function
getEdgeConstant
()
{
return
ManiphestTaskHasCommitEdgeType
::
EDGECONST
;
}
protected
function
getActionName
()
{
return
pht
(
'Edit Commits'
);
}
protected
function
getActionIcon
()
{
return
'fa-code'
;
}
public
function
shouldAppearInActionMenu
()
{
// TODO: For now, the default search for commits is not very good, so
// it is hard to find objects to link to. Until that works better, just
// hide this item.
return
false
;
}
public
function
canRelateObjects
(
$src
,
$dst
)
{
return
(
$dst
instanceof
PhabricatorRepositoryCommit
);
}
public
function
getDialogTitleText
()
{
return
pht
(
'Edit Related Commits'
);
}
public
function
getDialogHeaderText
()
{
return
pht
(
'Current Commits'
);
}
public
function
getDialogButtonText
()
{
return
pht
(
'Save Related Commits'
);
}
}
Event Timeline
Log In to Comment