]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/request/html/class_HtmlRequest.php
Continued:
[core.git] / framework / main / classes / request / html / class_HtmlRequest.php
index db025f0df035d8e8abca2f7f285b8b305944982f..ba1b4c82708d6e8e4b9ad92683ca4529c382041e 100644 (file)
@@ -1,16 +1,17 @@
 <?php
 // Own namespace
-namespace CoreFramework\Request;
+namespace Org\Mxchange\CoreFramework\Request;
 
 // Import framework stuff
-use CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\String\Utils\StringUtils;
 
 /**
  * A concrete and secured HTML request class to make HTML requests more abstract
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2019 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  * @todo               Move out the cookie part to a seperate class, e.g. Cookie
@@ -92,7 +93,7 @@ class HtmlRequest extends BaseRequest implements Requestable {
         *
         * @return      void
         */
-       public function prepareRequestData () {
+       protected function prepareRequestData () {
                // Copy GET then POST data
                $this->setRequestData(array_merge($_GET, $_POST));
        }
@@ -108,7 +109,7 @@ class HtmlRequest extends BaseRequest implements Requestable {
                $headerValue = NULL;
 
                // Construct the name
-               $name = 'HTTP_' . strtoupper(self::convertDashesToUnderscores($headerName));
+               $name = 'HTTP_' . strtoupper(StringUtils::convertDashesToUnderscores($headerName));
 
                // Does this header exist?
                if (isset($_SERVER[$name])) {