| 1 | <?php |
||
| 23 | class BatchAdminController extends CRUDController |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Returns true if $idx contains 123 and 456. |
||
| 27 | */ |
||
| 28 | public function batchActionFooIsRelevant(array $idx, $allElements) |
||
|
|
|||
| 29 | { |
||
| 30 | if (isset($idx[0], $idx[1]) && 123 === $idx[0] && 456 === $idx[1]) { |
||
| 31 | return true; |
||
| 32 | } |
||
| 33 | |||
| 34 | if (isset($idx[0]) && 999 === $idx[0]) { |
||
| 35 | return 'flash_foo_error'; |
||
| 36 | } |
||
| 37 | |||
| 38 | return false; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function batchActionFoo(ProxyQueryInterface $query): void |
||
| 44 | |||
| 45 | public function batchActionBarIsRelevant(array $idx, $allElements) |
||
| 49 | |||
| 50 | public function batchActionBar(ProxyQueryInterface $query = null) |
||
| 58 | } |
||
| 59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.