• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/integration/mobile/logentry.php
  • Класс: BitrixSocialnetworkIntegrationMobileLogEntry
  • Вызов: LogEntry::onGetContentId
static function onGetContentId(Event $event)
{
	$result = new EventResult(
		EventResult::UNDEFINED,
		array(),
		'socialnetwork'
	);

	$logEventFields = $event->getParameter('logEventFields');

	if (!is_array($logEventFields))
	{
		return $result;
	}

	if ($contentId = Provider::getContentId($logEventFields))
	{
		$result = new EventResult(
			EventResult::SUCCESS,
			array(
				'contentId' => $contentId
			),
			'socialnetwork'
		);
	}

	return $result;
}