PHP Class DefaultPolicy, recess

Inheritance: implements IPolicy
Datei anzeigen Open project: KrisJordan/recess

Protected Properties

Property Type Description
$controller

Public Methods

Method Description
getControllerFor ( Request &$request, RtNode $routes )
getViewFor ( Response &$response )
preprocess ( Request &$request ) : Request Used to pre-process a request.

Protected Methods

Method Description
forceFormatFromResourceString ( Request &$request )
getControllerFromRouteResult ( Request &$request, RoutingResult $routeResult )
getHttpMethodFromPost ( Request &$request )
reparameterizeForFormat ( Request &$request ) but rather it is based on the content-type of the entity.

Method Details

forceFormatFromResourceString() protected method

protected forceFormatFromResourceString ( Request &$request )
$request Request

getControllerFor() public method

public getControllerFor ( Request &$request, RtNode $routes )
$request Request
$routes RtNode

getControllerFromRouteResult() protected method

protected getControllerFromRouteResult ( Request &$request, RoutingResult $routeResult )
$request Request
$routeResult RoutingResult

getHttpMethodFromPost() protected method

protected getHttpMethodFromPost ( Request &$request )
$request Request

getViewFor() public method

public getViewFor ( Response &$response )
$response Response

preprocess() public method

This may involve extracting information and transforming values. For example, Transforming the HTTP method from POST to PUT based on a POSTed field.
public preprocess ( Request &$request ) : Request
$request Request
return Request The refined Request.

reparameterizeForFormat() protected method

but rather it is based on the content-type of the entity.
protected reparameterizeForFormat ( Request &$request )
$request Request

Property Details

$controller protected_oe property

protected $controller