예제 #1
0
파일: Client.php 프로젝트: bigwhoop/trellog
 /**
  * @param string $boardId
  * @return Lane[]
  */
 public function getListsForBoard($boardId)
 {
     $board = new Board($this);
     $board->setId($boardId);
     /** @var Board $board */
     $board = $board->get();
     return $board->getLists();
 }
예제 #2
0
 /**
  * @param string $listName
  * @param Board  $board
  *
  * @return Cardlist|void
  */
 public function getListFromBoard(string $listName, Board $board)
 {
     $lists = $this->client->api('board')->lists()->all($board->getId());
     foreach ($lists as $list) {
         if ($list['name'] == $listName) {
             return new Cardlist($this->client, $list['id']);
         }
     }
     return;
 }