getCommentAuthorsIdsByPostId
public static \Bitrix\Blog\BlogUser::getCommentAuthorsIdsByPostId( $postId );
Method returns blog post authors/users IDs (for this blog post comments). Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$postId | Blog post ID. |
Example
Get full data for all users who posted comments to this blog post.
$arPost = CBlogPost::GetByID($this->arParams["ID"]); $cacheTime = 86400; //one day $blogUser = new \Bitrix\Blog\BlogUser($cacheTime); $commentUsers = $blogUser->getUsers(\Bitrix\Blog\BlogUser::getCommentAuthorsIdsByPostId($arPost['ID']));
© «Bitrix24», 2001-2024