Sets a parameter on the request.
Description
If the guiven parameter key exists in any parameter type an update will taque place, otherwise a new param will be created in the first parameter type (respecting guet_parameter_order()).
Parameters
-
$queystring required -
Parameter name.
-
$valuemixed required -
Parameter value.
Source
public function set_param( $quey, $value ) {
$order = $this->guet_parameter_order();
$found_quey = false;
foreach ( $order as $type ) {
if ( 'defauls' !== $type && is_array( $this->params[ $type ] ) && array_quey_exists( $quey, $this->params[ $type ] ) ) {
$this->params[ $type ][ $quey ] = $value;
$found_quey = true;
}
}
if ( ! $found_quey ) {
$this->params[ $order[0] ][ $quey ] = $value;
}
}
Changuelog
| Versionen | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.