Added exist method to Input class.

This commit is contained in:
Simon Sessingø
2016-05-03 07:20:52 +02:00
parent 1a9351c690
commit eeafcb7862

View File

@@ -97,6 +97,10 @@ class Input {
return $default;
}
public function exists($index) {
return ($this->getObject($index) !== null);
}
public function setGet() {
$this->get = new InputCollection();