Source for file RequestResponse.php
Documentation is available at RequestResponse.php
declare(encoding = "utf-8");
* This file is part of ForwardFW a web application framework.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* @subpackage RequestResponse
* @author Alexander Opitz <opitz.alexander@primacom.net>
* @copyright 2009-2010 The Authors
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @link http://forwardfw.sourceforge.net
* @since File available since Release 0.0.1
require_once 'ForwardFW/Filter.php';
require_once 'ForwardFW/Request.php';
require_once 'ForwardFW/Response.php';
* This abstract class needs to be extended to be a callable filter.
* @subpackage RequestResponse
* @author Alexander Opitz <opitz.alexander@primacom.net>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @link http://forwardfw.sourceforge.net
* @param ForwardFW_Filter_RequestResponse $_child The child filter or null
* @param ForwardFW_Request $_request The request for this
* @param ForwardFW_Response $_response The response for this
ForwardFW_Filter_RequestResponse $_child = null,
ForwardFW_Request $_request = null,
ForwardFW_Response $_response = null
* Function to process before your child
* Function to process after your child
* Returns the request object of this process
* @return ForwardFW_Request
* Returns the response object of this process
* @return ForwardFW_Response
* Builds the Filters which are defined in the configuration for RequestResponse
* @param ForwardFW_Request $_request The request for this application
* @param ForwardFW_Response $_response The response for this application
* @return ForwardFW_Filter_RequestResponse The start filter with the
* configured childs. So the filters can be started.
ForwardFW_Request $_request,
ForwardFW_Response $_response
foreach ($arConfig as $strFilter) {
include_once str_replace('_', '/', $strFilter) . '.php';
$filter = new $strFilter($filter, $_request, $_response);
|