Function Forum_driver_ipb3->topic_url
Definitions
sources/forum/ipb3.php
- Get a URL to the specified topic ID. Most forums don't require the second parameter, but some do, so it is required in the interface.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$topic_id | integer | No | No | required parameter | N/A | N/A | The topic ID |
$forum | string | No | No | required parameter | N/A | N/A | The forum ID |
Returns
- The URL to the topic
- Type: URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a URL to the specified topic ID. Most forums don't require the second parameter, but some do, so it is required in the interface.
*
* @param integer $topic_id The topic ID
* @param string $forum The forum ID
* @return URLPATH The URL to the topic
*/
public function topic_url(int $topic_id, string $forum) : string
* Get a URL to the specified topic ID. Most forums don't require the second parameter, but some do, so it is required in the interface.
*
* @param integer $topic_id The topic ID
* @param string $forum The forum ID
* @return URLPATH The URL to the topic
*/
public function topic_url(int $topic_id, string $forum) : string