summaryrefslogtreecommitdiff
path: root/inc/Input.class.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-06-24 14:35:23 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-06-24 14:35:23 +0200
commitfd50d5c713878b03fdcd8d21f8209f968fe55646 (patch)
tree74dd9af0d3a26ff8831ec49d0ec126ad9d8e4583 /inc/Input.class.php
parent89177306a2278255d6a2203b5fff4a839183d3cd (diff)
downloadrpg-fd50d5c713878b03fdcd8d21f8209f968fe55646.tar.gz
rpg-fd50d5c713878b03fdcd8d21f8209f968fe55646.tar.bz2
added has() method to input class
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