Function __global->test_url
Definitions
sources/comcode_renderer.php
- Test a URL as a broken link.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url_full | URLPATH | No | No | required parameter | N/A | N/A | URL to test |
| $tag_type | string | No | No | required parameter | N/A | N/A | Comcode tag type, to which the URL is associated |
| $given_url | string | No | No | required parameter | N/A | N/A | URL actually provided |
| $source_member | MEMBER | No | No | required parameter | N/A | N/A | The member who is responsible for this Comcode |
Returns
- Error message, or blank if no error
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Test a URL as a broken link.
*
* @param URLPATH $url_full URL to test
* @param string $tag_type Comcode tag type, to which the URL is associated
* @param string $given_url URL actually provided
* @param MEMBER $source_member The member who is responsible for this Comcode
* @return Tempcode Error message, or blank if no error
*/
function test_url(string $url_full, string $tag_type, string $given_url, int $source_member) : object
* Test a URL as a broken link.
*
* @param URLPATH $url_full URL to test
* @param string $tag_type Comcode tag type, to which the URL is associated
* @param string $given_url URL actually provided
* @param MEMBER $source_member The member who is responsible for this Comcode
* @return Tempcode Error message, or blank if no error
*/
function test_url(string $url_full, string $tag_type, string $given_url, int $source_member) : object

