• Модуль: mobile
  • Путь к файлу: ~/bitrix/modules/mobile/lib/component/loglist/processor.php
  • Класс: BitrixMobileComponentLogListProcessor
  • Вызов: Processor::processLastTimestamp
public function processLastTimestamp(&$result)
{
	$params = $this->getComponent()->arParams;
	$request = $this->getRequest();

	if ($params['SET_LOG_COUNTER'] === 'Y')
	{
		$result['LAST_LOG_TS'] = CUserCounter::getLastDate($result['currentUserId'], $result['COUNTER_TYPE']);

		if ($result['LAST_LOG_TS'] == 0)
		{
			$result['LAST_LOG_TS'] = 1;
		}
		else
		{
			//We substruct TimeZone offset in order to get server time
			//because of template compatibility
			$result['LAST_LOG_TS'] -= $result['TZ_OFFSET'];
		}
	}
	elseif (
		($result['COUNTER_TYPE'] == CUserCounter::LIVEFEED_CODE)
		&& (
			$params['LOG_ID'] > 0
			|| $result['AJAX_CALL']
		)
		&& (int)$request->get('LAST_LOG_TS') > 0
	)
	{
		$result['LAST_LOG_TS'] = (int)$request->get('LAST_LOG_TS');
	}
}