mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
dc9283b85d
Summary: Ref T4788. This moves everything except "merge" to the new code. Test Plan: - Edited relationships in Differential, Diffusion, and Pholio. - Uninstalled Pholio, made sure "Edit Mocks..." actions vanished. Reviewers: chad Reviewed By: chad Maniphest Tasks: T4788 Differential Revision: https://secure.phabricator.com/D16193
44 lines
985 B
PHP
44 lines
985 B
PHP
<?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();
|
|
}
|
|
|
|
}
|