@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
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 54 lines 1.0 kB view raw
1<?php 2 3final class ManiphestTaskBulkEngine 4 extends PhabricatorBulkEngine { 5 6 private $workboard; 7 8 public function setWorkboard(PhabricatorProject $workboard) { 9 $this->workboard = $workboard; 10 return $this; 11 } 12 13 public function getWorkboard() { 14 return $this->workboard; 15 } 16 17 public function newSearchEngine() { 18 return new ManiphestTaskSearchEngine(); 19 } 20 21 public function newEditEngine() { 22 return new ManiphestEditEngine(); 23 } 24 25 public function getDoneURI() { 26 $board_uri = $this->getBoardURI(); 27 if ($board_uri) { 28 return $board_uri; 29 } 30 31 return parent::getDoneURI(); 32 } 33 34 public function getCancelURI() { 35 $board_uri = $this->getBoardURI(); 36 if ($board_uri) { 37 return $board_uri; 38 } 39 40 return parent::getCancelURI(); 41 } 42 43 private function getBoardURI() { 44 $workboard = $this->getWorkboard(); 45 46 if ($workboard) { 47 $project_id = $workboard->getID(); 48 return "/project/board/{$project_id}/"; 49 } 50 51 return null; 52 } 53 54}