Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / maniphest / bulk / ManiphestTaskBulkEngine.php
blob44f575eefe8a1409363b06d88acba2e7717df825
1 <?php
3 final class ManiphestTaskBulkEngine
4 extends PhabricatorBulkEngine {
6 private $workboard;
8 public function setWorkboard(PhabricatorProject $workboard) {
9 $this->workboard = $workboard;
10 return $this;
13 public function getWorkboard() {
14 return $this->workboard;
17 public function newSearchEngine() {
18 return new ManiphestTaskSearchEngine();
21 public function newEditEngine() {
22 return new ManiphestEditEngine();
25 public function getDoneURI() {
26 $board_uri = $this->getBoardURI();
27 if ($board_uri) {
28 return $board_uri;
31 return parent::getDoneURI();
34 public function getCancelURI() {
35 $board_uri = $this->getBoardURI();
36 if ($board_uri) {
37 return $board_uri;
40 return parent::getCancelURI();
43 private function getBoardURI() {
44 $workboard = $this->getWorkboard();
46 if ($workboard) {
47 $project_id = $workboard->getID();
48 return "/project/board/{$project_id}/";
51 return null;