MvcTools: ezcMvcDispatcherConfiguration
[ ]
[ ]
[ ]
[ ]
[ ]
Interface: ezcMvcDispatcherConfiguration
|
Configure a dispatcher with an instance of an implementation of this interface. [
source]
You can use any dispatcher with the same configuration class.
Method Summary
|
public ezcMvcRedirect |
createFatalRedirectRequest(
$request, $result, $e, $e
)
Create the default internal redirect object in case something goes wrong in the views. |
|
public ezcMvcRequestParser |
createRequestParser(
)
Creates the request parser able to produce a relevant request object for this session. |
|
public ezcMvcResponseWriter |
createResponseWriter(
$routeInfo, $request, $result, $response, $response
)
Creates a response writer that uses the response and sends its output. |
|
public ezcMvcRouter |
createRouter(
$request, $request
)
Create the router able to instantiate a relevant controller for this request. |
|
public ezcMvcView |
createView(
$routeInfo, $request, $result, $result
)
Creates the view handler that is able to process the result. |
|
public void |
runPreRoutingFilters(
$request )
Runs all the pre-routing filters that are deemed necessary depending on information in $request. |
|
public ezcMvcInternalRedirect|null |
runRequestFilters(
$routeInfo, $request, $request
)
Runs all the request filters that are deemed necessary depending on information in $routeInfo and $request. |
|
public void |
runResponseFilters(
$routeInfo, $request, $result, $response )
Runs all the request filters that are deemed necessary depending on information in $routeInfo, $request, $result and $response. |
|
public void |
runResultFilters(
$routeInfo, $request, $result )
Runs all the request filters that are deemed necessary depending on information in $routeInfo, $request and $result. |
Methods
createFatalRedirectRequest
Create the default internal redirect object in case something goes wrong in the views.
Parameters
createRequestParser
Creates the request parser able to produce a relevant request object for this session.
createResponseWriter
Creates a response writer that uses the response and sends its output.
This method should be able to pick different response writers, but the response writer itself will only know about the $response.
Parameters
createRouter
Create the router able to instantiate a relevant controller for this request.
Parameters
createView
Creates the view handler that is able to process the result.
Parameters
runPreRoutingFilters
Runs all the pre-routing filters that are deemed necessary depending on information in $request.
The pre-routing filters could modify the request data so that a different router can be chosen.
Parameters
runRequestFilters
Runs all the request filters that are deemed necessary depending on information in $routeInfo and $request.
This method can return an object of class ezcMvcInternalRedirect in case the filters require this. A reason for this could be in case an authentication filter requires authentication credentials to be passed in through a login form. The method can also not return anything in case no redirect is necessary.
Parameters
runResponseFilters
Runs all the request filters that are deemed necessary depending on information in $routeInfo, $request, $result and $response.
Parameters
runResultFilters
Runs all the request filters that are deemed necessary depending on information in $routeInfo, $request and $result.
Parameters
Last updated: Mon, 27 Jul 2009