X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Frequest%2Fclass_BaseRequest.php;h=efd3c881e7767a7485b8ed55605432fe28d867b7;hb=f39c64749dc1c0e8cc935e04edd66ecc62f1dde3;hp=9364112c5b31c22a7881a593f6a64c8b36b89ce2;hpb=bbebbec0a156ebc2e6255fb80adadb50d79c1b6f;p=core.git diff --git a/inc/classes/main/request/class_BaseRequest.php b/inc/classes/main/request/class_BaseRequest.php index 9364112c..efd3c881 100644 --- a/inc/classes/main/request/class_BaseRequest.php +++ b/inc/classes/main/request/class_BaseRequest.php @@ -2,11 +2,11 @@ /** * A general request class * - * @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 - 2014 Core Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * 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 @@ -28,11 +28,11 @@ class BaseRequest extends BaseFrameworkSystem { private $requestData = array(); /** - * Wether this request is valid and can be further processed. The default is - * valid so make sure your intercepting filters sets this attribute to false + * Whether this request is valid and can be further processed. The default is + * valid so make sure your intercepting filters sets this attribute to FALSE * when they need to intercept the data flow. */ - private $requestIsValid = true; + private $requestIsValid = TRUE; /** * Protected constructor @@ -43,16 +43,12 @@ class BaseRequest extends BaseFrameworkSystem { protected function __construct ($className) { // Call parent constructor parent::__construct($className); - - // Clean up a little - $this->removeNumberFormaters(); - $this->removeSystemArray(); } /** - * Checks wether a request element is set + * Checks whether a request element is set * @param $element Name of the request element we want to check - * @return $isSet Wether the request element is set + * @return $isSet Whether the request element is set */ public function isRequestElementSet ($element) { // Is this element found? @@ -71,7 +67,7 @@ class BaseRequest extends BaseFrameworkSystem { */ public function getRequestElement ($element) { // Initialize value - $value = null; + $value = NULL; // Is the element set? if ($this->isRequestElementSet($element)) { @@ -117,19 +113,19 @@ class BaseRequest extends BaseFrameworkSystem { } /** - * Sets wether the request was valid (default: true) + * Sets whether the request was valid (default: TRUE) * - * @param $isValid Wether the request is valid + * @param $isValid Whether the request is valid * @return void */ - public final function requestIsValid ($isValid = true) { + public final function requestIsValid ($isValid = TRUE) { $this->requestIsValid = (bool) $isValid; } /** - * Returns wether this request is valid + * Returns whether this request is valid * - * @return $requestIsValid Wether this request is valid + * @return $requestIsValid Whether this request is valid */ public final function isRequestValid () { return $this->requestIsValid;