Skip to content
Snippets Groups Projects
Commit fd50d5c7 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added has() method to input class

parent 89177306
No related branches found
No related tags found
No related merge requests found
......@@ -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
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment