1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 17:52:43 +01:00
phorge-phorge/src/applications/differential/relationships/DifferentialRevisionHasParentRelationship.php

45 lines
985 B
PHP
Raw Normal View History

<?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();
}
}