Function __global->_qualify_url
Definitions
sources/urls2.php
- Take a URL and base URL, and fully qualify the URL according to it.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | URLPATH | No | No | required parameter | N/A | N/A | The URL to fully qualified |
| $url_base | URLPATH | No | No | required parameter | N/A | N/A | The base URL |
| $base_is_full_url | boolean | No | No | required parameter | N/A | N/A | Whether the base URL is actually a full URL which needs stripping back |
Returns
- Fully qualified URL
- Type: URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Take a URL and base URL, and fully qualify the URL according to it.
*
* @param URLPATH $url The URL to fully qualified
* @param URLPATH $url_base The base URL
* @param boolean $base_is_full_url Whether the base URL is actually a full URL which needs stripping back
* @return URLPATH Fully qualified URL
*/
function _qualify_url(string $url, string $url_base, bool $base_is_full_url) : string
* Take a URL and base URL, and fully qualify the URL according to it.
*
* @param URLPATH $url The URL to fully qualified
* @param URLPATH $url_base The base URL
* @param boolean $base_is_full_url Whether the base URL is actually a full URL which needs stripping back
* @return URLPATH Fully qualified URL
*/
function _qualify_url(string $url, string $url_base, bool $base_is_full_url) : string

