1 | <?php |
||
6 | class BanController extends CRUDController |
||
7 | { |
||
8 | public function showAction(Ban $ban) |
||
9 | { |
||
10 | return array("ban" => $ban); |
||
11 | } |
||
12 | |||
13 | public function listAction(Request $request) |
||
|
|||
14 | { |
||
15 | $currentPage = $this->getCurrentPage(); |
||
16 | |||
17 | $qb = $this->getQueryBuilder() |
||
18 | ->sortBy('updated')->reverse() |
||
19 | ->limit(16)->fromPage($currentPage); |
||
20 | |||
21 | return array( |
||
22 | 'bans' => $qb->getModels(), |
||
23 | 'currentPage' => $currentPage, |
||
24 | 'totalPages' => $qb->countPages() |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | 1 | public function createAction(Player $me, Player $player = null) |
|
34 | |||
35 | public function editAction(Player $me, Ban $ban) |
||
39 | |||
40 | public function deleteAction(Player $me, Ban $ban) |
||
44 | |||
45 | public function unbanAction(Player $me, Ban $ban) |
||
62 | } |
||
63 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.