Function Forum_driver_base->member_profile_url

Definitions

sources/forum_stub.php

  • Get a URL to a forum member's member profile.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id MEMBER No No required parameter N/A N/A The forum member
$tempcode_okay boolean No No False N/A N/A Whether it is okay to return the result using Tempcode (more efficient, and allows keep_* parameters to propagate)
$username ?string No No Null N/A N/A Username, passed for performance reasons (null: look it up)
$hints array No No [] N/A N/A Extra parameters to pass to the forum drivers

Returns

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

Preview

Code (PHP)

/**
 * Get a URL to a forum member's member profile.
 *
 * @param  MEMBER $id The forum member
 * @param  boolean $tempcode_okay Whether it is okay to return the result using Tempcode (more efficient, and allows keep_* parameters to propagate)
 * @param  ?string $username Username, passed for performance reasons (null: look it up)
 * @param  array $hints Extra parameters to pass to the forum drivers
 * @return mixed The URL
 */

public function member_profile_url(int $id, bool $tempcode_okay = false, ?string $username = null, array $hints = [])