Function Forum_driver_ipb3->find_topic_id_for_topic_identifier
Definitions
sources/forum/ipb3.php
- Get the topic ID from a topic identifier in the specified forum. It is used by comment topics, which means that the unique-topic-name assumption holds valid.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$forum | string | No | No | required parameter | N/A | N/A | The forum name / ID |
$topic_identifier | SHORT_TEXT | No | No | required parameter | N/A | N/A | The topic identifier |
Returns
- The topic ID (null: not found)
- Type: ?integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the topic ID from a topic identifier in the specified forum. It is used by comment topics, which means that the unique-topic-name assumption holds valid.
*
* @param string $forum The forum name / ID
* @param SHORT_TEXT $topic_identifier The topic identifier
* @return ?integer The topic ID (null: not found)
*/
public function find_topic_id_for_topic_identifier(string $forum, string $topic_identifier) : ?int
* Get the topic ID from a topic identifier in the specified forum. It is used by comment topics, which means that the unique-topic-name assumption holds valid.
*
* @param string $forum The forum name / ID
* @param SHORT_TEXT $topic_identifier The topic identifier
* @return ?integer The topic ID (null: not found)
*/
public function find_topic_id_for_topic_identifier(string $forum, string $topic_identifier) : ?int