X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Frequest%2Fclass_;h=c4ab6a908ef0a39f616b572762879d4d5aefcada;hb=f861d6bc00f8a3ecf6b057f2aa93129572643896;hp=e046132a1eb7785b1d299f2138388dcb343973a0;hpb=78a010fef84895720e796842208f01dfb619c332;p=core.git diff --git a/framework/main/classes/request/class_ b/framework/main/classes/request/class_ index e046132a..c4ab6a90 100644 --- a/framework/main/classes/request/class_ +++ b/framework/main/classes/request/class_ @@ -1,13 +1,16 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -30,7 +33,7 @@ class ???Request extends BaseRequest implements Requestable { * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -38,17 +41,17 @@ class ???Request extends BaseRequest implements Requestable { /** * Creates an instance of this class and prepares it a little * - * @return $httpInstance An instance of this class + * @return $requestInstance An instance of this class */ public final static function create???Request () { // Create an instance - $httpInstance = new ???Request(); + $requestInstance = new ???Request(); // Prepare the HTTP request data for usage - $httpInstance->prepareRequestData(); + $requestInstance->prepareRequestData(); // Return the prepared instance - return $httpInstance; + return $requestInstance; } /** @@ -57,8 +60,8 @@ class ???Request extends BaseRequest implements Requestable { * @return void * @todo Needs to be implemented */ - public function prepareRequestData () { - $this->partialStub("Please implement this method."); + protected function prepareRequestData () { + DebugMiddleware::getSelfInstance()->partialStub("Please implement this method."); } /** @@ -68,7 +71,7 @@ class ???Request extends BaseRequest implements Requestable { * @return $headerValue Value of the header or 'null' if not found */ public function getHeaderElement ($headerName) { - $this->partialStub("Please implement this method."); + DebugMiddleware::getSelfInstance()->partialStub("Please implement this method."); } /** @@ -77,7 +80,7 @@ class ???Request extends BaseRequest implements Requestable { * @return $requestMethod Used request method */ public final function getRequestMethod () { - $this->partialStub("Please implement this method."); + DebugMiddleware::getSelfInstance()->partialStub("Please implement this method."); return $_SERVER['REQUEST_METHOD']; } @@ -88,9 +91,7 @@ class ???Request extends BaseRequest implements Requestable { * @return $cookieValue Value of cookie or null if not found */ public final function readCookie ($cookieName) { - $this->partialStub("Please implement this method."); + DebugMiddleware::getSelfInstance()->partialStub("Please implement this method."); } -} -// [EOF] -?> +}