Function __global->find_first_unread_url

Definitions

sources/cns_topicview.php

  • Find the URL to the latest unread post in a topic.
  • 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 AUTO_LINK No No required parameter N/A N/A The topic ID

Returns

  • The URL
  • Type: URLPATH
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the URL to the latest unread post in a topic.
 *
 * @param  AUTO_LINK $topic_id The topic ID
 * @return URLPATH The URL
 */

function find_first_unread_url(int $topic_id) : string