• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile/profilepost.php
  • Класс: BitrixIntranetComponentUserProfileProfilePost
  • Вызов: ProfilePost::getProfileBlogPostAction
public function getProfileBlogPostAction($errorCollection)
{
	$result = [];

	if ($postId = $this->getPostId())
	{
		$result['POST_ID'] = $postId;

		if (
			!empty($result['POST_ID'])
			&& Loader::includeModule('blog')
		)
		{
			$result['POST'] = $this->getPostData($result['POST_ID']);

			if (!empty($result['POST']))
			{
				$postArea = new ProfilePostArea([
					'postFields' => $result['POST'],
					'pathToUser' => $this->getPathToUser()
				]);

				return new HtmlContent($postArea, HtmlContent::STATUS_SUCCESS, $errorCollection, $result);
			}
		}
	}

	return [];
}