isReservedName

Description

Checks if name is a reserved name or username.

Syntax

bool isReservedName (string $name, int $current_ID_MEMBER[, bool $is_name])



Parameter $name

Expected type: String
Description: A name to check



Parameter $current_ID_MEMBER

Expected type: Integer
Description: The current member's ID (used to prevent duplicate results from the current member)



Parameter $is_name

Expected type: Boolean
Description: If true, indicates that we're checking the display name; otherwise indicates that we're checking the username. Default is true



Return value

Expected type: Boolean
Description: True if the specified name is reserved; false otherwise


Notes

  • If is_name is false, the name is assumed to be a username.
  • Ihe ID_MEMBER variable is used to ignore duplicate matches with the current member.
Advertisement: