Inheritance diagram for Controller:A controller.
Protected Properties | |
| array array | $extra |
| Extra arguments from the router. More... | |
| array | $path |
| The path's regex match from routing. More... | |
| Site | $site |
Public Methods | |
| __call (string $method, array $args) | |
Throws HTTP 501 Not Implemented as a catch-all for any unimplemented non-standard request methods. More... | |
| __construct (Site $site, array $path, array $extra=[]) | |
| void string View | delete () |
Handles DELETE More... | |
| void string View | get () |
Handles GET More... | |
| head () | |
Handles HEAD More... | |
| bool | offsetExists ($offset) |
| null mixed | offsetGet ($offset) |
| void | offsetSet ($offset, $value) |
| void | offsetUnset ($offset) |
| void string View | post () |
Handles POST More... | |
| void string View | put () |
Handles PUT More... | |
Protected Methods | |
| redirect_exit (string $path, int $code=302) | |
| Forwards to Response::redirect_exit(). More... | |
|
protected |
Extra arguments from the router.
|
protected |
The path's regex match from routing.
ArrayAccess forwards to this.
| __construct | ( | Site | $site, |
| array | $path, | ||
| array | $extra = [] |
||
| ) |
| Site | $site | |
| string[] | $path | |
| array | $extra |
|
final |
Throws HTTP 501 Not Implemented as a catch-all for any unimplemented non-standard request methods.
| string | $method | |
| array | $args |
| void string View delete | ( | ) |
Handles DELETE
This stub throws HTTP 501 Not Implemented
| void string View get | ( | ) |
Handles GET
This stub throws HTTP 501 Not Implemented
| head | ( | ) |
Handles HEAD
This stub returns from Controller::get()
| bool offsetExists | ( | $offset | ) |
| mixed | $offset |
| null mixed offsetGet | ( | $offset | ) |
| mixed | $offset |
null | void offsetSet | ( | $offset, | |
| $value | |||
| ) |
| mixed | $offset | |
| mixed | $value |
| void offsetUnset | ( | $offset | ) |
| mixed | $offset |
| void string View post | ( | ) |
Handles POST
This stub throws HTTP 501 Not Implemented
| void string View put | ( | ) |
Handles PUT
This stub throws HTTP 501 Not Implemented
|
protected |
Forwards to Response::redirect_exit().
| string | $path | |
| int | $code |