diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-06-24 14:35:23 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-06-24 14:35:23 +0200 |
commit | fd50d5c713878b03fdcd8d21f8209f968fe55646 (patch) | |
tree | 74dd9af0d3a26ff8831ec49d0ec126ad9d8e4583 | |
parent | 89177306a2278255d6a2203b5fff4a839183d3cd (diff) | |
download | rpg-fd50d5c713878b03fdcd8d21f8209f968fe55646.tar.gz rpg-fd50d5c713878b03fdcd8d21f8209f968fe55646.tar.bz2 |
added has() method to input class
-rw-r--r-- | inc/Input.class.php | 13 |
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 |