• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/user.php
  • Класс: CAllUser
  • Вызов: CAllUser::IsJustBecameOnline
public function IsJustBecameOnline()
{
	if (!$this->GetParam('PREV_LAST_ACTIVITY'))
	{
		return true;
	}
	else
	{
		return (($this->GetParam('SET_LAST_ACTIVITY') - $this->GetParam('PREV_LAST_ACTIVITY')) > MainUserTable::getSecondsForLimitOnline());
	}
}