• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/blocks/orderstatus.php
  • Класс: BitrixSaleHelpersAdminBlocksOrderStatus
  • Вызов: OrderStatus::getUserInfo
static function getUserInfo($userId)
{
	static $users = array();

	$userId = intval($userId);
	if ($userId <= 0)
		return array( "ID"=>0, "NAME" => "", "LOGIN"=>"");

	if (isset($users[$userId]))
		return $users[$userId];

	$dbRes = CUser::GetList("id", "asc", array("ID" => $userId), array("FIELDS" => array("ID", "NAME", "LOGIN")));
	$user = $dbRes->Fetch();

	if ($user)
		$users[$userId] = $user;
	else
		$user = array( "ID"=>0, "NAME" => "", "LOGIN"=>"");

	return $user;
}