1*ccc4c71cSAndreas Gohr<?php 2*ccc4c71cSAndreas Gohr 3*ccc4c71cSAndreas Gohrnamespace dokuwiki\Input; 4*ccc4c71cSAndreas Gohr 5*ccc4c71cSAndreas Gohr/** 6*ccc4c71cSAndreas Gohr * Internal class used for $_POST access in dokuwiki\Input\Input class 7*ccc4c71cSAndreas Gohr */ 8*ccc4c71cSAndreas Gohrclass Post extends Input 9*ccc4c71cSAndreas Gohr{ 10*ccc4c71cSAndreas Gohr 11*ccc4c71cSAndreas Gohr /** @noinspection PhpMissingParentConstructorInspection 12*ccc4c71cSAndreas Gohr * Initialize the $access array, remove subclass members 13*ccc4c71cSAndreas Gohr */ 14*ccc4c71cSAndreas Gohr public function __construct() 15*ccc4c71cSAndreas Gohr { 16*ccc4c71cSAndreas Gohr $this->access = &$_POST; 17*ccc4c71cSAndreas Gohr } 18*ccc4c71cSAndreas Gohr 19*ccc4c71cSAndreas Gohr /** 20*ccc4c71cSAndreas Gohr * Sets a parameter in $_POST and $_REQUEST 21*ccc4c71cSAndreas Gohr * 22*ccc4c71cSAndreas Gohr * @param string $name Parameter name 23*ccc4c71cSAndreas Gohr * @param mixed $value Value to set 24*ccc4c71cSAndreas Gohr */ 25*ccc4c71cSAndreas Gohr public function set($name, $value) 26*ccc4c71cSAndreas Gohr { 27*ccc4c71cSAndreas Gohr parent::set($name, $value); 28*ccc4c71cSAndreas Gohr $_REQUEST[$name] = $value; 29*ccc4c71cSAndreas Gohr } 30*ccc4c71cSAndreas Gohr} 31