30 lines
		
	
	
		
			622 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			622 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace dokuwiki\Input;
 | |
| 
 | |
| /**
 | |
|  * Internal class used for $_GET access in dokuwiki\Input\Input class
 | |
|  */
 | |
| class Get extends Input
 | |
| {
 | |
|     /** @noinspection PhpMissingParentConstructorInspection
 | |
|      * Initialize the $access array, remove subclass members
 | |
|      */
 | |
|     public function __construct()
 | |
|     {
 | |
|         $this->access = &$_GET;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Sets a parameter in $_GET 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;
 | |
|     }
 | |
| }
 |