Static Public Member Functions | |
| static | dispatch ($query='') |
| static | match ($req, $firstpass=true) |
| static | send ($req, $ctl, $match) |
| static | loadControllers ($file) |
| static Pluf_Dispatcher::dispatch | ( | $ | query = '' |
) | [static] |
The unique method to call.
| string | Query string ('') |
[signal]
Pluf_Dispatcher::postDispatch
[sender]
[description]
This signal is sent after the rendering of a request. This means you cannot affect the response but you can use this hook to do some cleaning.
[parameters]
array('request' => $request, 'response' => $response)
| static Pluf_Dispatcher::match | ( | $ | req, | |
| $ | firstpass = true | |||
| ) | [static] |
Match a query against the actions controllers.
| Pluf_HTTP_Request | Request object |
| static Pluf_Dispatcher::send | ( | $ | req, | |
| $ | ctl, | |||
| $ | match | |||
| ) | [static] |
Call the view found by self::match.
The called view can throw an exception. This is fine and normal.
| Pluf_HTTP_Request | Current request | |
| array | The url definition matching the request | |
| array | The match found by preg_match |
| static Pluf_Dispatcher::loadControllers | ( | $ | file | ) | [static] |
Load the controllers.
| string | File including the views. |