Function __global->__request_page
Definitions
sources/site.php
- Take the specified parameters, and try to find 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 |
| $page_type | ?ID_TEXT | No | No | Null | N/A | N/A | The type of page - for if you know it (null: don't know it) |
| $lang | ?LANGUAGE_NAME | No | No | Null | N/A | N/A | Language name (null: user's language) |
| $redirect_check | boolean | No | No | True | N/A | N/A | Whether to check for redirects (normally you would) |
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 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 ?ID_TEXT $page_type The type of page - for if you know it (null: don't know it)
* @param ?LANGUAGE_NAME $lang Language name (null: user's language)
* @param boolean $redirect_check Whether to check for redirects (normally you would)
* @return ~array A list of details (false: page not found)
*/
function __request_page(string $codename, string $zone, ?string $page_type = null, ?string $lang = null, bool $redirect_check = true)
* Take the specified parameters, and try to find 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 ?ID_TEXT $page_type The type of page - for if you know it (null: don't know it)
* @param ?LANGUAGE_NAME $lang Language name (null: user's language)
* @param boolean $redirect_check Whether to check for redirects (normally you would)
* @return ~array A list of details (false: page not found)
*/
function __request_page(string $codename, string $zone, ?string $page_type = null, ?string $lang = null, bool $redirect_check = true)

