• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/lib/comments/feed.php
  • Класс: BitrixForumCommentsFeed
  • Вызов: Feed::moderate
public function moderate($id, $show)
{
	$comment = Comment::createFromId($this, $id);
	if (!$this->canModerate())
		$this->errorCollection->addOne(new Error(Loc::getMessage("FORUM_CM_RIGHTS4"), self::ERROR_PERMISSION));
	else
	{
		$comment->moderate($show);
		if ($comment->hasErrors())
			$this->errorCollection->add($comment->getErrors());
		else
			return $comment->getComment();
	}
	return false;
}