BlogUser::GetUserName

  1. Bitrix24 API (v. 23.675.0)
  2. blog
  3. BlogUser
  4. GetUserName
  • Модуль: blog
  • Путь к файлу: ~/bitrix/modules/blog/lib/bloguser.php
  • Класс: BitrixBlogBlogUser
  • Вызов: BlogUser::GetUserName
static function GetUserName($alias, $name, $lastName, $login, $secondName = "")
{
	$result = "";
	
	$canUseAlias = COption::GetOptionString("blog", "allow_alias", "Y");
	if ($canUseAlias == "Y")
		$result = $alias;
	
	if ($result == '')
	{
		$result = CUser::FormatName(
			CSite::GetNameFormat(false),
			array("NAME" => $name,
				"LAST_NAME" => $lastName,
				"SECOND_NAME" => $secondName,
				"LOGIN" => $login),
			true,
			false
		);
	}
	
	return $result;
}

Добавить комментарий