]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/request/class_HttpRequest.php
More style convensions applied, interface updated
[shipsimu.git] / inc / classes / main / request / class_HttpRequest.php
index 2c1950ac52c4b4d4c628fd6a735ab6b138d69cf3..aa337db6a29e11654ea87553afc1a3e7c745200e 100644 (file)
@@ -28,9 +28,11 @@ class HttpRequest extends BaseFrameworkSystem implements Requestable {
        private $requestData = array();
 
        /**
-        * Wether this request is valid and can be further processed
+        * 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
+        * when they need to intercept the data flow.
         */
-       private $requestIsValid = false;
+       private $requestIsValid = true;
 
        /**
         * Protected constructor
@@ -169,6 +171,15 @@ class HttpRequest extends BaseFrameworkSystem implements Requestable {
        public final function requestIsValid ($isValid = true) {
                $this->requestIsValid = (bool) $isValid;
        }
+
+       /**
+        * Returns wether this request is valid
+        *
+        * @return      $requestIsValid         Wether this request is valid
+        */
+       public final function isRequestValid () {
+               return $this->requestIsValid;
+       }
 }
 
 // [EOF]