@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 40 lines 831 B view raw
1<?php 2 3final class DiffusionCommitHasTaskRelationship 4 extends DiffusionCommitRelationship { 5 6 const RELATIONSHIPKEY = 'commit.has-task'; 7 8 public function getEdgeConstant() { 9 return DiffusionCommitHasTaskEdgeType::EDGECONST; 10 } 11 12 protected function getActionName() { 13 return pht('Edit Tasks'); 14 } 15 16 protected function getActionIcon() { 17 return 'fa-anchor'; 18 } 19 20 public function canRelateObjects($src, $dst) { 21 return ($dst instanceof ManiphestTask); 22 } 23 24 public function getDialogTitleText() { 25 return pht('Edit Related Tasks'); 26 } 27 28 public function getDialogHeaderText() { 29 return pht('Current Tasks'); 30 } 31 32 public function getDialogButtonText() { 33 return pht('Save Related Tasks'); 34 } 35 36 protected function newRelationshipSource() { 37 return new ManiphestTaskRelationshipSource(); 38 } 39 40}