Function __global->set_execution_context
Definitions
sources/urls2.php
- Change whatever global context that is required in order to run from a different context.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $new_get | array | No | No | required parameter | N/A | N/A | The URL component map (must contain 'page') |
| $new_zone | ID_TEXT | No | No | _SEARCH | N/A | N/A | The zone |
| $new_current_script | ID_TEXT | No | No | index | N/A | N/A | The running script |
| $erase_keep_also | boolean | No | No | False | N/A | N/A | Whether to get rid of keep_ variables in current URL |
| $new_in_self_routing_script | ?boolean | No | No | Null | N/A | N/A | Whether we are in a self-routing script (null: if new_current_script is 'index') |
| $replace_existing_get | boolean | No | No | True | N/A | N/A | Replace all existing GET parameters |
Returns
- A list of parameters that would be required to be passed back to reset the state
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Change whatever global context that is required in order to run from a different context.
*
* @param array $new_get The URL component map (must contain 'page')
* @param ID_TEXT $new_zone The zone
* @param ID_TEXT $new_current_script The running script
* @param boolean $erase_keep_also Whether to get rid of keep_ variables in current URL
* @param ?boolean $new_in_self_routing_script Whether we are in a self-routing script (null: if new_current_script is 'index')
* @param boolean $replace_existing_get Replace all existing GET parameters
* @return array A list of parameters that would be required to be passed back to reset the state
*/
function set_execution_context(array $new_get, string $new_zone = '_SEARCH', string $new_current_script = 'index', bool $erase_keep_also = false, ?bool $new_in_self_routing_script = null, bool $replace_existing_get = true) : array
* Change whatever global context that is required in order to run from a different context.
*
* @param array $new_get The URL component map (must contain 'page')
* @param ID_TEXT $new_zone The zone
* @param ID_TEXT $new_current_script The running script
* @param boolean $erase_keep_also Whether to get rid of keep_ variables in current URL
* @param ?boolean $new_in_self_routing_script Whether we are in a self-routing script (null: if new_current_script is 'index')
* @param boolean $replace_existing_get Replace all existing GET parameters
* @return array A list of parameters that would be required to be passed back to reset the state
*/
function set_execution_context(array $new_get, string $new_zone = '_SEARCH', string $new_current_script = 'index', bool $erase_keep_also = false, ?bool $new_in_self_routing_script = null, bool $replace_existing_get = true) : array
