Pluf_Dispatcher Class Reference

List of all members.

Static Public Member Functions

static dispatch ($query='')
static match ($req, $firstpass=true)
static send ($req, $ctl, $match)
static loadControllers ($file)


Member Function Documentation

static Pluf_Dispatcher::dispatch ( query = ''  )  [static]

The unique method to call.

Parameters:
string Query string ('')

[signal]

Pluf_Dispatcher::postDispatch

[sender]

Pluf_Dispatcher

[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.

See also:
Pluf_HTTP_URL_reverse
Parameters:
Pluf_HTTP_Request Request object
Returns:
Pluf_HTTP_Response Response 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.

Parameters:
Pluf_HTTP_Request Current request
array The url definition matching the request
array The match found by preg_match
Returns:
Pluf_HTTP_Response Response object

static Pluf_Dispatcher::loadControllers ( file  )  [static]

Load the controllers.

Parameters:
string File including the views.
Returns:
bool Success.


The documentation for this class was generated from the following file:

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen