Function Forum_driver_cns->_member_profile_url

Definitions

sources/forum/cns.php

  • Get a URL to the specified member's profile.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The member ID
$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 which you almost certainly want!)
$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 for the URL

Returns

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

Preview

Code (PHP)

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

protected function _member_profile_url(int $member_id, bool $tempcode_okay = false, ?string $username = null, array $hints = [])