Group::getBlogPostIdsByGroupId

  1. Bitrix24 API (v. 23.675.0)
  2. blog
  3. Group
  4. getBlogPostIdsByGroupId
  • Модуль: blog
  • Путь к файлу: ~/bitrix/modules/blog/lib/copy/integration/group.php
  • Класс: BitrixBlogCopyIntegrationGroup
  • Вызов: Group::getBlogPostIdsByGroupId
private function getBlogPostIdsByGroupId($groupId)
{
	$blogPostIds = [];

	$queryObject = CBlogPost::getList([], ["SOCNET_GROUP_ID" => $groupId]);
	while ($blogPost = $queryObject->fetch())
	{
		$blogPostIds[] = $blogPost["ID"];
	}

	return $blogPostIds;
}

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