Function __global->get_base_url
Definitions
sources/global2.php
- Get the base URL (the minimum fully qualified URL to our installation).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $zone_for | ?ID_TEXT | No | No | Null | N/A | N/A | The zone the link is for (null: root zone) |
Returns
- The base URL
- Type: URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the base URL (the minimum fully qualified URL to our installation).
*
* @param ?ID_TEXT $zone_for The zone the link is for (null: root zone)
* @return URLPATH The base URL
*/
function get_base_url(?string $zone_for = null) : string
* Get the base URL (the minimum fully qualified URL to our installation).
*
* @param ?ID_TEXT $zone_for The zone the link is for (null: root zone)
* @return URLPATH The base URL
*/
function get_base_url(?string $zone_for = null) : string
sources/minikernel.php
- Get the base URL (the minimum fully qualified URL to our installation).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $zone_for | string | No | No | Blank (empty string) | N/A | N/A | What zone this is running in |
Returns
- The base URL
- Type: URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the base URL (the minimum fully qualified URL to our installation).
*
* @param string $zone_for What zone this is running in
* @return URLPATH The base URL
*/
function get_base_url(string $zone_for = '') : string
* Get the base URL (the minimum fully qualified URL to our installation).
*
* @param string $zone_for What zone this is running in
* @return URLPATH The base URL
*/
function get_base_url(string $zone_for = '') : string

