class AkismetProcessor implements RequestFilter (View source)

Allows akismet to be configured via siteconfig instead of hard-coded configuration

Methods

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

Filter executed AFTER a request

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

Filter executed before a request processes

protected
bool
isDBReady()

Make sure the DB is ready before accessing siteconfig db field

Details

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)

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)

protected bool isDBReady()

Make sure the DB is ready before accessing siteconfig db field

Return Value

bool