Function Forum_driver_vb3->post_url

Definitions

sources/forum/vb3.php

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

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)

Returns

  • The URL to the post
  • Type: URLPATH
  • 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)
 * @return URLPATH The URL to the post
 */

public function post_url(int $post_id, $forum) : string