Function Forum_driver_ipb3->get_username_sort_query

Definitions

sources/forum/ipb3.php

  • Returns the SQL query to use in an ORDER BY when sorting by a member (actually, username, but we only know the ID).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$field ID_TEXT required parameter N/A N/A The name of the r.* field containing the member ID
$use_displayname boolean False N/A N/A Whether we want the display name instead of the username

Return

  • The SQL query (null: this driver does not support sorting by member)
  • Type: ?string
  • Set: N/A
  • Range: N/A