Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93170425
DifferentialRevisionHasParentRelationship.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, Nov 26, 18:11
Size
985 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 18:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22581479
Attached To
rPH Phabricator
DifferentialRevisionHasParentRelationship.php
View Options
<?php
final
class
DifferentialRevisionHasParentRelationship
extends
DifferentialRevisionRelationship
{
const
RELATIONSHIPKEY
=
'revision.has-parent'
;
public
function
getEdgeConstant
()
{
return
DifferentialRevisionDependsOnRevisionEdgeType
::
EDGECONST
;
}
protected
function
getActionName
()
{
return
pht
(
'Edit Parent Revisions'
);
}
protected
function
getActionIcon
()
{
return
'fa-chevron-circle-up'
;
}
public
function
canRelateObjects
(
$src
,
$dst
)
{
return
(
$dst
instanceof
DifferentialRevision
);
}
public
function
shouldAppearInActionMenu
()
{
return
false
;
}
public
function
getDialogTitleText
()
{
return
pht
(
'Edit Parent Revisions'
);
}
public
function
getDialogHeaderText
()
{
return
pht
(
'Current Parent Revisions'
);
}
public
function
getDialogButtonText
()
{
return
pht
(
'Save Parent Revisions'
);
}
protected
function
newRelationshipSource
()
{
return
new
DifferentialRevisionRelationshipSource
();
}
}
Event Timeline
Log In to Comment