| @@ 87-107 (lines=21) @@ | ||
| 84 | ); |
|
| 85 | } |
|
| 86 | ||
| 87 | public function listOccurrenceAction() |
|
| 88 | { |
|
| 89 | $this->checkGame(); |
|
| 90 | ||
| 91 | $adapter = new DoctrineAdapter( |
|
| 92 | new LargeTablePaginator( |
|
| 93 | $this->getAdminGameService()->getInstantWinOccurrenceMapper()->queryByGame($this->game) |
|
| 94 | ) |
|
| 95 | ); |
|
| 96 | $paginator = new Paginator($adapter); |
|
| 97 | $paginator->setItemCountPerPage(25); |
|
| 98 | $paginator->setCurrentPageNumber($this->getEvent()->getRouteMatch()->getParam('p')); |
|
| 99 | ||
| 100 | return new ViewModel( |
|
| 101 | array( |
|
| 102 | 'occurrences' => $paginator, |
|
| 103 | 'gameId' => $this->game->getId(), |
|
| 104 | 'game' => $this->game, |
|
| 105 | ) |
|
| 106 | ); |
|
| 107 | } |
|
| 108 | ||
| 109 | public function addOccurrenceAction() |
|
| 110 | { |
|
| @@ 602-622 (lines=21) @@ | ||
| 599 | ); |
|
| 600 | } |
|
| 601 | ||
| 602 | public function invitationAction() |
|
| 603 | { |
|
| 604 | $this->checkGame(); |
|
| 605 | ||
| 606 | $adapter = new DoctrineAdapter( |
|
| 607 | new LargeTablePaginator( |
|
| 608 | $this->getAdminGameService()->getInvitationMapper()->queryByGame($this->game) |
|
| 609 | ) |
|
| 610 | ); |
|
| 611 | $paginator = new Paginator($adapter); |
|
| 612 | $paginator->setItemCountPerPage(25); |
|
| 613 | $paginator->setCurrentPageNumber($this->getEvent()->getRouteMatch()->getParam('p')); |
|
| 614 | ||
| 615 | return new ViewModel( |
|
| 616 | array( |
|
| 617 | 'invitations' => $paginator, |
|
| 618 | 'gameId' => $this->game->getId(), |
|
| 619 | 'game' => $this->game, |
|
| 620 | ) |
|
| 621 | ); |
|
| 622 | } |
|
| 623 | ||
| 624 | public function removeInvitationAction() |
|
| 625 | { |
|