Horde_Controller_FilterRunner
in package
implements
Horde_Controller_FilterCollection
Collects filters and executes them around a controller
Tags
Interfaces, Classes, Traits and Enums
- Horde_Controller_FilterCollection
- Interface for an object that houses a collection of pre/post filters.
Table of Contents
- $_controller : Horde_Controller
- $_postFilters : array<string|int, mixed>
- $_preFilters : array<string|int, mixed>
- __construct() : mixed
- addPostFilter() : mixed
- Prepend fitler to postfilters array
- addPreFilter() : mixed
- Append filter to prefilters array
- processRequest() : Horde_Controller_Response
- Executes filters and controller method. Execution happens in the following order:
- _applyPostFilters() : mixed
- _applyPreFilters() : mixed
Properties
$_controller
protected
Horde_Controller
$_controller
$_postFilters
protected
array<string|int, mixed>
$_postFilters
= array()
$_preFilters
protected
array<string|int, mixed>
$_preFilters
= array()
Methods
__construct()
public
__construct(Horde_Controller $controller) : mixed
Parameters
- $controller : Horde_Controller
Return values
mixed —addPostFilter()
Prepend fitler to postfilters array
public
addPostFilter(Horde_Controller_PostFilter $filter) : mixed
Parameters
- $filter : Horde_Controller_PostFilter
Return values
mixed —addPreFilter()
Append filter to prefilters array
public
addPreFilter(Horde_Controller_PreFilter $filter) : mixed
Parameters
- $filter : Horde_Controller_PreFilter
Return values
mixed —processRequest()
Executes filters and controller method. Execution happens in the following order:
public
processRequest(Horde_Controller_Request $request, Horde_Controller_Response $response) : Horde_Controller_Response
- Run processRequest() on prefilters in first-in-first-out order
- Run processRequest() on controller
- Run processResponse() on postfilters in first-in-last-out order
Parameters
- $request : Horde_Controller_Request
- $response : Horde_Controller_Response
Return values
Horde_Controller_Response —_applyPostFilters()
protected
_applyPostFilters(Horde_Controller_Request $request, Horde_Controller_Response $response) : mixed
Parameters
- $request : Horde_Controller_Request
- $response : Horde_Controller_Response
Return values
mixed —_applyPreFilters()
protected
_applyPreFilters(Horde_Controller_Request $request, Horde_Controller_Response $response) : mixed
Parameters
- $request : Horde_Controller_Request
- $response : Horde_Controller_Response