Source for file Request.php
Documentation is available at Request.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
* @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
* This class represents the Request from browser.
* @author Alexander Opitz <opitz.alexander@primacom.net>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @link http://forwardfw.sourceforge.net
* Returns the parameter for the application from browser request or
* @param string $strParameterName Name of the parameter to return.
* @param string $strControllerClass Class name of the controller, wh asks.
* @param string $strApplicationName Name of the application.
* @return mixed The parameter for the application or null.
$strControllerClass = 'ForwardFW_Request',
$strParameterName, $strApplicationName
$strParameterName, $strControllerClass, $strApplicationName
* Returns the request parameter from browser/user session.
* @param string $strParameterName Name of the parameter to return.
* @param string $strApplicationName Name of the application.
* @return mixed The parameter from the request.
if (isset ($_REQUEST[$strApplicationName][$strParameterName])) {
$return = $_REQUEST[$strApplicationName][$strParameterName];
* Returns the config parameter for the application from configuration.
* @param string $strParameterName Name of the parameter to return.
* @param string $strControllerClass Class name of the controller, wh asks.
* @param string $strApplicationName Name of the application.
* @return mixed The configuration for the application or null.
$strControllerClass = 'ForwardFW_Request',
if (isset ($GLOBALS[$strParameterName])) {
$return = $GLOBALS[$strParameterName];
if (isset ($GLOBALS['ForwardFW'][$strParameterName])) {
$return = $GLOBALS['ForwardFW'][$strParameterName];
if (isset ($GLOBALS[$strApplicationName][$strParameterName])) {
$return = $GLOBALS[$strApplicationName][$strParameterName];
if (isset ($GLOBALS[$strControllerClass][$strParameterName])) {
$return = $GLOBALS[$strControllerClass][$strParameterName];
$GLOBALS[$strApplicationName][$strControllerClass][$strParameterName]
$return = $GLOBALS[$strApplicationName][$strControllerClass][$strParameterName];
|