FilterInterface
in
Filter interface
Table of Contents
Methods
- after() : ResponseInterface|void
- Allows After filters to inspect and modify the response object as needed. This method does not allow any way to stop execution of other after filters, short of throwing an Exception or Error.
- before() : RequestInterface|ResponseInterface|string|void
- Do whatever processing this filter needs to do.
Methods
after()
Allows After filters to inspect and modify the response object as needed. This method does not allow any way to stop execution of other after filters, short of throwing an Exception or Error.
public
after(RequestInterface $request, ResponseInterface $response[, array<int, string>|null $arguments = null ]) : ResponseInterface|void
Parameters
- $request : RequestInterface
- $response : ResponseInterface
- $arguments : array<int, string>|null = null
Return values
ResponseInterface|voidbefore()
Do whatever processing this filter needs to do.
public
before(RequestInterface $request[, array<int, string>|null $arguments = null ]) : RequestInterface|ResponseInterface|string|void
By default it should not return anything during normal execution. However, when an abnormal state is found, it should return an instance of CodeIgniter\HTTP\Response. If it does, script execution will end and that Response will be sent back to the client, allowing for error pages, redirects, etc.
Parameters
- $request : RequestInterface
- $arguments : array<int, string>|null = null