Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/engine/PhabricatorBoardLayoutEngine.php
| Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | private function loadBoards() { | ||||
| $board_phids = $this->getBoardPHIDs(); | $board_phids = $this->getBoardPHIDs(); | ||||
| $boards = id(new PhabricatorObjectQuery()) | $boards = id(new PhabricatorObjectQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withPHIDs($board_phids) | ->withPHIDs($board_phids) | ||||
| ->execute(); | ->execute(); | ||||
| $boards = mpull($boards, null, 'getPHID'); | $boards = mpull($boards, null, 'getPHID'); | ||||
| foreach ($boards as $key => $board) { | |||||
| if (!($board instanceof PhabricatorWorkboardInterface)) { | |||||
| unset($boards[$key]); | |||||
| } | |||||
| } | |||||
| if (!$this->fetchAllBoards) { | if (!$this->fetchAllBoards) { | ||||
| foreach ($boards as $key => $board) { | foreach ($boards as $key => $board) { | ||||
| if (!$board->getHasWorkboard()) { | if (!$board->getHasWorkboard()) { | ||||
| unset($boards[$key]); | unset($boards[$key]); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines | |||||