• Модуль: blog
  • Путь к файлу: ~/bitrix/modules/blog/lib/bloguser.php
  • Класс: BitrixBlogBlogUser
  • Вызов: BlogUser::getCommentAuthorsIdsByPostId
static function getCommentAuthorsIdsByPostId($postId)
{
	if (!$postId)
		throw new ArgumentNullException('post ID');
	$postId = intval($postId);
	$result = array();
	
	$resComment = CBlogComment::GetList(array(), array("POST_ID" => $postId), false, false, array("AUTHOR_ID"));
	while ($comment = $resComment->Fetch())
	{
		if ($comment["AUTHOR_ID"])
			$result[$comment["AUTHOR_ID"]] = $comment["AUTHOR_ID"];
	}
	
	return $result;
}