src/PlaygroundGame/Controller/Admin/InstantWinController.php 1 location
|
@@ 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 |
|
{ |
src/PlaygroundGame/Controller/Admin/TradingCardController.php 1 location
|
@@ 76-96 (lines=21) @@
|
| 73 |
|
); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
public function listModelAction() |
| 77 |
|
{ |
| 78 |
|
$this->checkGame(); |
| 79 |
|
|
| 80 |
|
$adapter = new DoctrineAdapter( |
| 81 |
|
new LargeTablePaginator( |
| 82 |
|
$this->getAdminGameService()->getTradingCardModelMapper()->queryByGame($this->game) |
| 83 |
|
) |
| 84 |
|
); |
| 85 |
|
$paginator = new Paginator($adapter); |
| 86 |
|
$paginator->setItemCountPerPage(25); |
| 87 |
|
$paginator->setCurrentPageNumber($this->getEvent()->getRouteMatch()->getParam('p')); |
| 88 |
|
|
| 89 |
|
return new ViewModel( |
| 90 |
|
array( |
| 91 |
|
'models' => $paginator, |
| 92 |
|
'gameId' => $this->game->getId(), |
| 93 |
|
'game' => $this->game, |
| 94 |
|
) |
| 95 |
|
); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
|
| 99 |
|
public function addModelAction() |
src/PlaygroundGame/Controller/Admin/GameController.php 1 location
|
@@ 204-224 (lines=21) @@
|
| 201 |
|
); |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
public function invitationAction() |
| 205 |
|
{ |
| 206 |
|
$this->checkGame(); |
| 207 |
|
|
| 208 |
|
$adapter = new DoctrineAdapter( |
| 209 |
|
new LargeTablePaginator( |
| 210 |
|
$this->getAdminGameService()->getInvitationMapper()->queryByGame($this->game) |
| 211 |
|
) |
| 212 |
|
); |
| 213 |
|
$paginator = new Paginator($adapter); |
| 214 |
|
$paginator->setItemCountPerPage(25); |
| 215 |
|
$paginator->setCurrentPageNumber($this->getEvent()->getRouteMatch()->getParam('p')); |
| 216 |
|
|
| 217 |
|
return new ViewModel( |
| 218 |
|
array( |
| 219 |
|
'invitations' => $paginator, |
| 220 |
|
'gameId' => $this->game->getId(), |
| 221 |
|
'game' => $this->game, |
| 222 |
|
) |
| 223 |
|
); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
public function removeInvitationAction() |
| 227 |
|
{ |