Source for file Request.php
Documentation is available at Request.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: KUBO Atsuhiro <iteman@users.sourceforge.net> |
// +----------------------------------------------------------------------+
// $Id: Request.php,v 1.5 2006/11/07 09:25:14 kuboa Exp $
* Utility class that constructs appropriate class instance for miscellaneous
* @package Net_UserAgent_Mobile
* @author KUBO Atsuhiro <iteman@users.sourceforge.net>
* @version $Revision: 1.5 $
* create a new Net_UserAgent_Mobile_Request_XXX instance
* parses HTTP headers and constructs appropriate class instance.
* If no argument is supplied, $_SERVER is used.
* @param mixed $stuff User-Agent string or object that works with
* HTTP_Request (not implemented)
* @return mixed a newly created Net_UserAgent_Request object
'HTTP_USER_AGENT' => $stuff)
* provides easy way to access environment variables
* @package Net_UserAgent_Mobile
* @author KUBO Atsuhiro <iteman@users.sourceforge.net>
* @version $Revision: 1.5 $
* array of environment variables defined by Web Server
* returns a specified HTTP Header
$header = strtr($header, '-', '_');
return @$this->_env[ 'HTTP_' . strtoupper($header) ];
* c-hanging-comment-ender-p: nil
Documentation generated on Mon, 11 Mar 2019 14:48:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|