Documentation

getPostAuthorsIdsByBlogId

 public static
\Bitrix\Blog\BlogUser::getPostAuthorsIdsByBlogId(
  $blogId
);

Method returns user IDs who posted messages in this blog. Comment authors are not considered. Static method.

Parameters

ParameterDescriptionVersion
$blogIdBlog ID.

Examples

Get full data for all users who posted messages in this blog.

// $blogId - blog ID
$cacheTime = 86400; //one day
$blogUser = new \Bitrix\Blog\BlogUser($cacheTime);
$blogUser->setBlogId($blogId);	
$postsUsers = $blogUser->getUsers(\Bitrix\Blog\BlogUser::getPostAuthorsIdsByBlogId($blogId));


© «Bitrix24», 2001-2024