Livefeed::getLogCommentId

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Livefeed
  4. getLogCommentId
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/livefeed.php
  • Класс: Bitrix\Crm\Activity\Provider\Livefeed
  • Вызов: Livefeed::getLogCommentId
static function getLogCommentId($sourceId, $eventId)
{
	$result = false;

	if (Loader::includeModule('socialnetwork'))
	{
		$res = \CSocNetLogComments::getList(
			array(),
			array(
				'SOURCE_ID' => $sourceId,
				'EVENT_ID' => $eventId
			),
			false,
			array('nTopCount' => 1),
			array('ID', 'SOURCE_ID')
		);
		if ($comment = $res->fetch())
		{
			$result = intval($comment['ID']);
		}
	}

	return $result;
}

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