summaryrefslogtreecommitdiff
path: root/inc/Input.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Input.class.php')
-rw-r--r--inc/Input.class.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/Input.class.php b/inc/Input.class.php
index f1967599f..7665c609e 100644
--- a/inc/Input.class.php
+++ b/inc/Input.class.php
@@ -28,6 +28,19 @@ class Input {
}
/**
+ * Check if a parameter was set
+ *
+ * Basically a wrapper around isset
+ *
+ * @see isset
+ * @param $name Parameter name
+ * @return bool
+ */
+ public function has($name) {
+ return isset($this->access[$name]);
+ }
+
+ /**
* Access a request parameter without any type conversion
*
* @param string $name Parameter name