1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-08 13:51:02 +01:00
phorge-phorge/src/applications/diffusion/relationships/DiffusionCommitHasTaskRelationship.php

41 lines
831 B
PHP
Raw Normal View History

<?php
final class DiffusionCommitHasTaskRelationship
extends DiffusionCommitRelationship {
const RELATIONSHIPKEY = 'commit.has-task';
public function getEdgeConstant() {
return DiffusionCommitHasTaskEdgeType::EDGECONST;
}
protected function getActionName() {
return pht('Edit Tasks');
}
protected function getActionIcon() {
return 'fa-anchor';
}
public function canRelateObjects($src, $dst) {
return ($dst instanceof ManiphestTask);
}
public function getDialogTitleText() {
return pht('Edit Related Tasks');
}
public function getDialogHeaderText() {
return pht('Current Tasks');
}
public function getDialogButtonText() {
return pht('Save Related Tasks');
}
protected function newRelationshipSource() {
return new ManiphestTaskRelationshipSource();
}
}