]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/request/class_BaseRequest.php
Added new interfaces Handleable/-DataSet and ProtocolHandler (no content yet).
[core.git] / inc / classes / main / request / class_BaseRequest.php
index 3757607de5c389d86dc0fe9c9c1ed5dcc81df86a..efd3c881e7767a7485b8ed55605432fe28d867b7 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A general request class
  *
- * @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 - 2011 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
@@ -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?
@@ -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;