diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index f99e59c..164610e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -5,21 +5,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -36,23 +22,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -66,6 +40,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -82,16 +68,16 @@
-
+
-
+
-
-
+
+
@@ -115,7 +101,7 @@
-
+
@@ -135,10 +121,10 @@
-
+
-
+
@@ -148,7 +134,6 @@
- void
set
hasParam
csrf_token
@@ -178,6 +163,7 @@
file(
setUrl
TODO
+ input()->get
D:\Workspace\simple-php-router\src\Pecee\SimpleRouter\Route
@@ -245,11 +231,11 @@
-
+
@@ -400,7 +386,7 @@
-
+
@@ -541,7 +527,7 @@
-
+
@@ -578,7 +564,7 @@
-
+
@@ -598,8 +584,8 @@
-
-
+
+
@@ -820,16 +806,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -913,7 +889,7 @@
-
+
@@ -937,17 +913,7 @@
-
-
-
-
-
-
-
-
-
-
-
+
@@ -964,7 +930,7 @@
-
+
@@ -983,10 +949,30 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Pecee/Http/Input/InputHandler.php b/src/Pecee/Http/Input/InputHandler.php
index e4d62b4..6d38ec3 100644
--- a/src/Pecee/Http/Input/InputHandler.php
+++ b/src/Pecee/Http/Input/InputHandler.php
@@ -290,7 +290,7 @@ class InputHandler
* @param array $filter Only take items in filter
* @return array
*/
- public function all(array $filter): array
+ public function all(array $filter = []): array
{
$output = $_GET;
@@ -316,4 +316,37 @@ class InputHandler
return ($filter !== null) ? array_intersect_key($output, array_flip($filter)) : $output;
}
+ /**
+ * Add GET parameter
+ *
+ * @param string $key
+ * @param InputItem $item
+ */
+ public function addGet(string $key, InputItem $item): void
+ {
+ $this->get[$key] = $item;
+ }
+
+ /**
+ * Add POST parameter
+ *
+ * @param string $key
+ * @param InputItem $item
+ */
+ public function addPost(string $key, InputItem $item): void
+ {
+ $this->post[$key] = $item;
+ }
+
+ /**
+ * Add FILE parameter
+ *
+ * @param string $key
+ * @param InputFile $item
+ */
+ public function addFile(string $key, InputFile $item): void
+ {
+ $this->file[$key] = $item;
+ }
+
}
\ No newline at end of file