class RequestProcessor implements RequestFilter (View source)

Represents a request processer that delegates pre and post request handling to nested request filters

Methods

public
__construct($filters = array())

No description

public
setFilters(array $filters)

Assign a list of request filters

public
bool
preRequest(SS_HTTPRequest $request, Session $session, DataModel $model)

Filter executed before a request processes

public
bool
postRequest(SS_HTTPRequest $request, SS_HTTPResponse $response, DataModel $model)

Filter executed AFTER a request

Details

__construct($filters = array())

No description

Parameters

$filters

setFilters(array $filters)

Assign a list of request filters

Parameters

array $filters

bool preRequest(SS_HTTPRequest $request, Session $session, DataModel $model)

Filter executed before a request processes

Parameters

SS_HTTPRequest $request

Request container object

Session $session

Request session

DataModel $model

Current DataModel

Return Value

bool

Whether to continue processing other filters. Null or true will continue processing (optional)

bool postRequest(SS_HTTPRequest $request, SS_HTTPResponse $response, DataModel $model)

Filter executed AFTER a request

Parameters

SS_HTTPRequest $request

Request container object

SS_HTTPResponse $response

Response output object

DataModel $model

Current DataModel

Return Value

bool

Whether to continue processing other filters. Null or true will continue processing (optional)