Merge pull request #3024 from splitbrain/cookieupdate
[dokuwiki.git] / inc / Input / Post.php
blob137cd72f420957f921376cd33723f6f692c51257
1 <?php
3 namespace dokuwiki\Input;
5 /**
6 * Internal class used for $_POST access in dokuwiki\Input\Input class
7 */
8 class Post extends Input
11 /** @noinspection PhpMissingParentConstructorInspection
12 * Initialize the $access array, remove subclass members
14 public function __construct()
16 $this->access = &$_POST;
19 /**
20 * Sets a parameter in $_POST and $_REQUEST
22 * @param string $name Parameter name
23 * @param mixed $value Value to set
25 public function set($name, $value)
27 parent::set($name, $value);
28 $_REQUEST[$name] = $value;