3 final class ManiphestTaskHasParentRelationship
4 extends ManiphestTaskRelationship
{
6 const RELATIONSHIPKEY
= 'task.has-parent';
8 public function getEdgeConstant() {
9 return ManiphestTaskDependedOnByTaskEdgeType
::EDGECONST
;
12 protected function getActionName() {
13 return pht('Edit Parent Tasks');
16 protected function getActionIcon() {
17 return 'fa-chevron-circle-up';
20 public function canRelateObjects($src, $dst) {
21 return ($dst instanceof ManiphestTask
);
24 public function shouldAppearInActionMenu() {
28 public function getDialogTitleText() {
29 return pht('Edit Parent Tasks');
32 public function getDialogHeaderText() {
33 return pht('Current Parent Tasks');
36 public function getDialogButtonText() {
37 return pht('Save Parent Tasks');
40 protected function newRelationshipSource() {
41 return id(new ManiphestTaskRelationshipSource())
42 ->setSelectedFilter('open');