GetUserName
string public static \Bitrix\Blog\BlogUser::GetUserName( $alias, $name, $lastName, $login, string $secondName = "" );
The method formats specific blog user name based based on name alias and login. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$alias | Alias | |
$name | Name | |
$lastName | Last name | |
$login | Login | |
$secondName | Middle name |
Examples
Generate author name for printing.
$authorName = \Bitrix\Blog\BlogUser::GetUserName( 'Administrator', 'John', 'Smith', 'admin' ); echo $authorName; // Administrator
© «Bitrix24», 2001-2024