Documentation

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

ParameterDescriptionVersion
$aliasAlias
$nameName
$lastNameLast name
$loginLogin
$secondNameMiddle name

Examples

Generate author name for printing.

$authorName = \Bitrix\Blog\BlogUser::GetUserName(
	'Administrator',
	'John',
	'Smith',
	'admin'
);
echo $authorName; // Administrator


© «Bitrix24», 2001-2024
Up