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
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]