Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91772123
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
Thu, Nov 14, 07:53
Size
985 B
Mime Type
text/x-php
Expires
Sat, Nov 16, 07:53 (2 d)
Engine
blob
Format
Raw Data
Handle
22320708
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