GridFilter::getCurrentUserName

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. GridFilter
  4. getCurrentUserName
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/filter/gridfilter.php
  • Класс: BitrixTasksInternalsProjectFilterGridFilter
  • Вызов: GridFilter::getCurrentUserName
private function getCurrentUserName(): string
{
	$result = CUser::GetList(
		'',
		'',
		['ID_EQUAL_EXACT' => $this->userId],
		['FIELDS' => ['NAME', 'LAST_NAME', 'SECOND_NAME', 'LOGIN']]
	);
	if ($user = $result->Fetch())
	{
		return CUser::FormatName($this->nameTemplate, $user, true, false);
	}

	return '';
}

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