Function Forum_driver_cns->post_url

Definitions

sources/forum/cns.php

  • Get a URL to the specified post ID.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$post_id integer No No required parameter N/A N/A The post ID
$forum ?mixed No No required parameter N/A N/A The forum ID (null: private topic)
$tempcode_okay boolean No No False N/A N/A Whether it is okay to return the result using Tempcode (more efficient)

Returns

  • The URL to the post
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a URL to the specified post ID.
 *
 * @param  integer $post_id The post ID
 * @param  ?mixed $forum The forum ID (null: private topic)
 * @param  boolean $tempcode_okay Whether it is okay to return the result using Tempcode (more efficient)
 * @return mixed The URL to the post
 */

public function post_url(int $post_id, $forum, bool $tempcode_okay = false)