Function __global->_request_page__redirects
Definitions
sources/site.php
- Take the specified parameters, and try to find a redirect for the corresponding page.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $codename | ID_TEXT | No | No | required parameter | N/A | N/A | The codename of the page to load |
| $zone | ID_TEXT | No | No | required parameter | N/A | N/A | The zone the page is being loaded in |
| $wildcard_mode | boolean | No | No | False | N/A | N/A | Whether to also search in wildcard mode |
Returns
- A list of details (false: page not found)
- Type: ~array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Take the specified parameters, and try to find a redirect for the corresponding page.
*
* @param ID_TEXT $codename The codename of the page to load
* @param ID_TEXT $zone The zone the page is being loaded in
* @param boolean $wildcard_mode Whether to also search in wildcard mode
* @return ~array A list of details (false: page not found)
*/
function _request_page__redirects(string $codename, string $zone, bool $wildcard_mode = false)
* Take the specified parameters, and try to find a redirect for the corresponding page.
*
* @param ID_TEXT $codename The codename of the page to load
* @param ID_TEXT $zone The zone the page is being loaded in
* @param boolean $wildcard_mode Whether to also search in wildcard mode
* @return ~array A list of details (false: page not found)
*/
function _request_page__redirects(string $codename, string $zone, bool $wildcard_mode = false)

