Function Forum_driver_base->get_member_avatar_url

Definitions

sources/forum_stub.php

  • Get the avatar URL for the specified member 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
$member MEMBER No No required parameter N/A N/A The member ID
$fallback_support boolean No No True N/A N/A Support default avatars / gravatars (if enabled)

Returns

  • The URL (blank: none)
  • Type: URLPATH
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the avatar URL for the specified member ID.
 *
 * @param  MEMBER $member The member ID
 * @param  boolean $fallback_support Support default avatars / gravatars (if enabled)
 * @return URLPATH The URL (blank: none)
 */

public function get_member_avatar_url(int $member, bool $fallback_support = true) : string