mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-19 10:18:38 +01:00
41 lines
870 B
PHP
41 lines
870 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionCommitHasRevisionRelationship
|
||
|
extends DiffusionCommitRelationship {
|
||
|
|
||
|
const RELATIONSHIPKEY = 'commit.has-revision';
|
||
|
|
||
|
public function getEdgeConstant() {
|
||
|
return DiffusionCommitHasRevisionEdgeType::EDGECONST;
|
||
|
}
|
||
|
|
||
|
protected function getActionName() {
|
||
|
return pht('Edit Revisions');
|
||
|
}
|
||
|
|
||
|
protected function getActionIcon() {
|
||
|
return 'fa-cog';
|
||
|
}
|
||
|
|
||
|
public function canRelateObjects($src, $dst) {
|
||
|
return ($dst instanceof DifferentialRevision);
|
||
|
}
|
||
|
|
||
|
public function getDialogTitleText() {
|
||
|
return pht('Edit Related Revisions');
|
||
|
}
|
||
|
|
||
|
public function getDialogHeaderText() {
|
||
|
return pht('Current Revisions');
|
||
|
}
|
||
|
|
||
|
public function getDialogButtonText() {
|
||
|
return pht('Save Related Revisions');
|
||
|
}
|
||
|
|
||
|
protected function newRelationshipSource() {
|
||
|
return new DifferentialRevisionRelationshipSource();
|
||
|
}
|
||
|
|
||
|
}
|