Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90383622
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
Fri, Nov 1, 04:08
Size
985 B
Mime Type
text/x-php
Expires
Sun, Nov 3, 04:08 (2 d)
Engine
blob
Format
Raw Data
Handle
22065675
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