2016-06-22 10:24:54 -07:00
|
|
|
<?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');
|
|
|
|
}
|
|
|
|
|
2016-06-28 16:05:05 -07:00
|
|
|
protected function newRelationshipSource() {
|
2016-06-30 10:51:14 -07:00
|
|
|
return id(new ManiphestTaskRelationshipSource())
|
|
|
|
->setSelectedFilter('open');
|
2016-06-28 16:05:05 -07:00
|
|
|
}
|
|
|
|
|
2016-06-22 10:24:54 -07:00
|
|
|
}
|