mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Added exist method to Input class.
This commit is contained in:
@@ -97,6 +97,10 @@ class Input {
|
|||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function exists($index) {
|
||||||
|
return ($this->getObject($index) !== null);
|
||||||
|
}
|
||||||
|
|
||||||
public function setGet() {
|
public function setGet() {
|
||||||
$this->get = new InputCollection();
|
$this->get = new InputCollection();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user