• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblocksocnetevent.php
  • Класс: CWebDavSocNetEvent
  • Вызов: CWebDavSocNetEvent::_getSocnetLogCommentByForumComment
private function _getSocnetLogCommentByForumComment($forumPostID, $arSocnetLogEntity)
{
	$commentID = false;
	$arFilter = array(
		"ENTITY_TYPE" => $arSocnetLogEntity["ENTITY_TYPE"],
		"ENTITY_ID" => $arSocnetLogEntity["ENTITY_ID"],
		"EVENT_ID" => $this->event_comments_id,
		"SOURCE_ID" => $forumPostID
	);
	$arListParams = array("USE_SUBSCRIBE" => "N");

	$dbComments = CSocNetLogComments::GetList(
		array(),
		$arFilter,
		false,
		false,
		array(),
		$arListParams
	);

	if ($arComments = $dbComments->GetNext())
	{
		$commentID = $arComments['ID'];
	}
	return $commentID;
}