Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Fins
Fins.FinsController

Method Fins.FinsController()->after_filter()


Method after_filter

void after_filter(function|object filter)

Description

adds a filter to be run after the event method for a request is called.

Parameter filter

either an object that provides a method "filter" or a function. either the function "filter" in the object, or the method itself should have the following signature:

int filter(object request, object response, mixed ... args)

a filter should return a true value if the filter was a success. otherwise, false (zero) should be returned, and the request will not be handled further. returning false indicates the filter wishes to perform a redirect or render function in order to preempt the request.