• Модуль: recyclebin
  • Путь к файлу: ~/bitrix/modules/recyclebin/lib/internals/user.php
  • Класс: BitrixRecyclebinInternalsUser
  • Вызов: User::getCurrentUserId
static function getCurrentUserId()
{
	global $USER;

	if (is_object($USER) && method_exists($USER, 'getId'))
	{
		$userId = $USER->getId();
		if ($userId > 0)
		{
			return $userId;
		}
	}

	return 0;
}