• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/integration/blog/mention.php
  • Класс: BitrixSocialnetworkIntegrationBlogMention
  • Вызов: Mention::getSocNetPerms
static function getSocNetPerms(array $params = [])
{
	static $cache = [];

	$result = [];

	$postId = (int)($params['postId'] ?? 0);

	if (
		$postId <= 0
		|| !Loader::includeModule('blog')
	)
	{
		return $result;
	}

	if (isset($cache[$postId]))
	{
		$result = $cache[$postId];
	}
	else
	{
		$result = CBlogPost::getSocnetPerms($postId);
		$cache[$postId] = $result;
	}

	return $result;
}