コード例 #1
0
ファイル: request.php プロジェクト: EmmiSiitonen/Hops-palvelu
 /**
  * Sets a request variable
  *
  * @param	array	An associative array of key-value pairs
  * @param	string	The request variable to set (POST, GET, FILES, METHOD)
  * @param	boolean	If true and an existing key is found, the value is overwritten, otherwise it is ingored
  */
 public static function set($array, $hash = 'default', $overwrite = true)
 {
     foreach ($array as $key => $value) {
         SomeRequest::setVar($key, $value, $hash, $overwrite);
     }
 }