Function Forum_driver_vb3->_get_username
Definitions
sources/forum/vb3.php
- Get the name relating to the specified member ID.If this returns null, then the member has been deleted. Always take potential null output into account.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
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 |
Returns
- The username (null: member deleted)
- Type: ?SHORT_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the name relating to the specified member ID.If this returns null, then the member has been deleted. Always take potential null output into account.
*
* @param MEMBER $member_id The member ID
* @return ?SHORT_TEXT The username (null: member deleted)
*/
protected function _get_username(int $member_id) : ?string
* Get the name relating to the specified member ID.If this returns null, then the member has been deleted. Always take potential null output into account.
*
* @param MEMBER $member_id The member ID
* @return ?SHORT_TEXT The username (null: member deleted)
*/
protected function _get_username(int $member_id) : ?string