diff --git a/inc/Input.class.php b/inc/Input.class.php index f1967599f27c3712fc4dd94e3b3b79a56d93a59e..7665c609eed2a8fcf237f167fbfe2789da347858 100644 --- a/inc/Input.class.php +++ b/inc/Input.class.php @@ -27,6 +27,19 @@ class Input { $this->get = new GetInput(); } + /** + * 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 *