mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-12 14:58:33 +01:00
41 lines
812 B
PHP
41 lines
812 B
PHP
|
<?php
|
||
|
|
||
|
final class ManiphestTaskHasSubtaskRelationship
|
||
|
extends ManiphestTaskRelationship {
|
||
|
|
||
|
const RELATIONSHIPKEY = 'task.has-subtask';
|
||
|
|
||
|
public function getEdgeConstant() {
|
||
|
return ManiphestTaskDependsOnTaskEdgeType::EDGECONST;
|
||
|
}
|
||
|
|
||
|
protected function getActionName() {
|
||
|
return pht('Edit Subtasks');
|
||
|
}
|
||
|
|
||
|
protected function getActionIcon() {
|
||
|
return 'fa-chevron-circle-down';
|
||
|
}
|
||
|
|
||
|
public function canRelateObjects($src, $dst) {
|
||
|
return ($dst instanceof ManiphestTask);
|
||
|
}
|
||
|
|
||
|
public function shouldAppearInActionMenu() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public function getDialogTitleText() {
|
||
|
return pht('Edit Subtasks');
|
||
|
}
|
||
|
|
||
|
public function getDialogHeaderText() {
|
||
|
return pht('Current Subtasks');
|
||
|
}
|
||
|
|
||
|
public function getDialogButtonText() {
|
||
|
return pht('Save Subtasks');
|
||
|
}
|
||
|
|
||
|
}
|