Codestyle + check trustedproxies
[dokuwiki.git] / inc / Input / Get.php
blob99ab2655d84b51083e59798e1ee5f661e20cd76f
1 <?php
3 namespace dokuwiki\Input;
5 /**
6 * Internal class used for $_GET access in dokuwiki\Input\Input class
7 */
8 class Get extends Input
10 /** @noinspection PhpMissingParentConstructorInspection
11 * Initialize the $access array, remove subclass members
13 public function __construct()
15 $this->access = &$_GET;
18 /**
19 * Sets a parameter in $_GET and $_REQUEST
21 * @param string $name Parameter name
22 * @param mixed $value Value to set
24 public function set($name, $value)
26 parent::set($name, $value);
27 $_REQUEST[$name] = $value;