Style convention applied (incomplete), pre/post filters added for form handler
[shipsimu.git] / inc / classes / main / request / class_HttpRequest.php
index 133f08af01be22137aa36049f467040b695bf785..2c1950ac52c4b4d4c628fd6a735ab6b138d69cf3 100644 (file)
@@ -27,6 +27,11 @@ class HttpRequest extends BaseFrameworkSystem implements Requestable {
         */
        private $requestData = array();
 
+       /**
+        * Wether this request is valid and can be further processed
+        */
+       private $requestIsValid = false;
+
        /**
         * Protected constructor
         *
@@ -154,6 +159,16 @@ class HttpRequest extends BaseFrameworkSystem implements Requestable {
        public final function getRequestMethod () {
                return $_SERVER['REQUEST_METHOD'];
        }
+
+       /**
+        * Sets wether the request was valid (default: true)
+        *
+        * @param       $isValid                Wether the request is valid
+        * @return      void
+        */
+       public final function requestIsValid ($isValid = true) {
+               $this->requestIsValid = (bool) $isValid;
+       }
 }
 
 // [EOF]