| 1 | <?php |
||
| 12 | class TestFormHandler extends FormRequestHandler |
||
| 13 | { |
||
| 14 | private static $url_handlers = array( |
||
| 15 | 'fields/$FieldName' => 'handleField', |
||
| 16 | "POST " => "handleSubmission", |
||
| 17 | "GET " => "handleGet", |
||
| 18 | ); |
||
| 19 | |||
| 20 | // These are a different case from those in url_handlers to confirm that it's all case-insensitive |
||
| 21 | private static $allowed_actions = array( |
||
| 22 | 'handlesubmission', |
||
| 23 | 'handlefield', |
||
| 24 | 'handleget', |
||
| 25 | ); |
||
| 26 | |||
| 27 | public function handleField($request) |
||
| 31 | |||
| 32 | public function handleSubmission($request) |
||
| 36 | |||
| 37 | public function handleGet($request) |
||
| 41 | } |
||
| 42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.