code/request/request.php
public static function set($array, $hash = 'default', $overwrite = true)
	{
		foreach ($array as $key => $value)
		{
			self::setVar($key, $value, $hash, $overwrite);
		}
	}
public static function set($array, $hash = 'default', $overwrite = true)
	{
		foreach ($array as $key => $value)
		{
			self::setVar($key, $value, $hash, $overwrite);
		}
	}
public static function set ( $ array , $ hash = 'default' , $ overwrite = true ) { foreach ( $ array as $ key => $ value ) { self :: setVar ( $ key , $ value , $ hash , $ overwrite ) ; } }
Sets a request variable.

@param   array    $array      An associative array of key-value pairs.
@param   string   $hash       The request variable to set (POST, GET, FILES, METHOD).
@param   boolean  $overwrite  If true and an existing key is found, the value is overwritten, otherwise it is ignored.

@return  void

@deprecated  12.1  Use JInput::set()
@see         JInput::set()
@since       11.1
Sets a request variable .