Had to rename more stuff.
[core.git] / inc / classes / main / request / web / class_HttpRequest.php
index 397911502ff4db5f52204cf69a5b1eb65e30333a..91527e84bdf1b762230fdfe864e0c98bd47b667d 100644 (file)
@@ -2,11 +2,12 @@
 /**
  * A concrete and secured HTTP request class to make HTTP requests more abstract
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @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
  * it under the terms of the GNU General Public License as published by
@@ -37,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();
 
@@ -66,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));
@@ -99,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])) {