summaryrefslogtreecommitdiff
path: root/platform/www/inc/Input/Post.php
diff options
context:
space:
mode:
Diffstat (limited to 'platform/www/inc/Input/Post.php')
-rw-r--r--platform/www/inc/Input/Post.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/platform/www/inc/Input/Post.php b/platform/www/inc/Input/Post.php
new file mode 100644
index 0000000..137cd72
--- /dev/null
+++ b/platform/www/inc/Input/Post.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace dokuwiki\Input;
+
+/**
+ * Internal class used for $_POST access in dokuwiki\Input\Input class
+ */
+class Post extends Input
+{
+
+ /** @noinspection PhpMissingParentConstructorInspection
+ * Initialize the $access array, remove subclass members
+ */
+ public function __construct()
+ {
+ $this->access = &$_POST;
+ }
+
+ /**
+ * Sets a parameter in $_POST and $_REQUEST
+ *
+ * @param string $name Parameter name
+ * @param mixed $value Value to set
+ */
+ public function set($name, $value)
+ {
+ parent::set($name, $value);
+ $_REQUEST[$name] = $value;
+ }
+}