Exemple #1
0
 /**
  * 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 ingored
  *
  * @return void
  */
 public static function set($array, $hash = 'default', $overwrite = true)
 {
     foreach ($array as $key => $value) {
         XoopsRequest::setVar($key, $value, $hash, $overwrite);
     }
 }