X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Frequest%2Fweb%2Fclass_HttpRequest.php;h=91527e84bdf1b762230fdfe864e0c98bd47b667d;hp=1ba80d75b07a6f0ad1e72652cb92e1332b3c36a8;hb=aafcd2e5f59f75d8f82f03fd0acc7461bc7f448d;hpb=d910565ba5a5073feafb273159906456772ff1d8 diff --git a/inc/classes/main/request/web/class_HttpRequest.php b/inc/classes/main/request/web/class_HttpRequest.php index 1ba80d75..91527e84 100644 --- a/inc/classes/main/request/web/class_HttpRequest.php +++ b/inc/classes/main/request/web/class_HttpRequest.php @@ -2,11 +2,11 @@ /** * A concrete and secured HTTP request class to make HTTP requests more abstract * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * @todo Move out the cookie part to a seperate class, e.g. Cookie * * This program is free software: you can redistribute it and/or modify @@ -38,7 +38,7 @@ class HttpRequest extends BaseRequest implements Requestable { * * @return $httpInstance An instance of this class */ - public final static function createHttpRequest () { + public static final function createHttpRequest () { // Create an instance $httpInstance = new HttpRequest(); @@ -67,9 +67,9 @@ class HttpRequest extends BaseRequest implements Requestable { * @param $headerName Name of the header * @return $headerValue Value of the header or 'null' if not found */ - public function getHeader ($headerName) { + public function getHeaderElement ($headerName) { // Default return value on error - $headerValue = null; + $headerValue = NULL; // Construct the name $name = 'HTTP_' . strtolower($this->convertDashesToUnderscores($headerName)); @@ -100,7 +100,7 @@ class HttpRequest extends BaseRequest implements Requestable { */ public final function readCookie ($cookieName) { // Default is no cookie with that name found - $cookieValue = null; + $cookieValue = NULL; // Is the cookie set? if (isset($_COOKIE[$cookieName])) {