]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/request/class_BaseRequest.php
Made lower to upper case:
[core.git] / inc / classes / main / request / class_BaseRequest.php
index 94bd6fc534b793a66d839f217d3fd479862dce32..01207d18502bc00bfa0d3d996a378ada8ab858e1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -28,11 +28,11 @@ class BaseRequest extends BaseFrameworkSystem {
        private $requestData = array();
 
        /**
-        * Wether this request is valid and can be further processed. The default is
+        * 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
@@ -46,9 +46,9 @@ class BaseRequest extends BaseFrameworkSystem {
        }
 
        /**
-        * 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?
@@ -67,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)) {
@@ -113,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;