Differential D16166 Diff 38890 src/applications/maniphest/relationship/ManiphestTaskHasParentRelationship.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/relationship/ManiphestTaskHasParentRelationship.php
- This file was added.
<?php | |||||
final class ManiphestTaskHasParentRelationship | |||||
extends ManiphestTaskRelationship { | |||||
const RELATIONSHIPKEY = 'task.has-parent'; | |||||
public function getEdgeConstant() { | |||||
return ManiphestTaskDependedOnByTaskEdgeType::EDGECONST; | |||||
} | |||||
protected function getActionName() { | |||||
return pht('Edit Parent Tasks'); | |||||
} | |||||
protected function getActionIcon() { | |||||
return 'fa-chevron-circle-up'; | |||||
} | |||||
public function canRelateObjects($src, $dst) { | |||||
return ($dst instanceof ManiphestTask); | |||||
} | |||||
public function shouldAppearInActionMenu() { | |||||
return false; | |||||
} | |||||
public function getDialogTitleText() { | |||||
return pht('Edit Parent Tasks'); | |||||
} | |||||
public function getDialogHeaderText() { | |||||
return pht('Current Parent Tasks'); | |||||
} | |||||
public function getDialogButtonText() { | |||||
return pht('Save Parent Tasks'); | |||||
} | |||||
} |