• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/composite/page.php
  • Класс: BitrixMainCompositePage
  • Вызов: Page::giveNegativeComponentVote
public function giveNegativeComponentVote($context = "")
{
	if (
		defined("USE_HTML_STATIC_CACHE")
		&& USE_HTML_STATIC_CACHE === true
		&& StaticArea::getCurrentDynamicId() === false //Voting doesn't work inside a dynamic area
	)
	{
		if (!$this->isVotingEnabled())
		{
			return;
		}

		$this->canCache = false;

		DebugLogger::log(array(
			"TYPE" => DebugLogger::TYPE_COMPONENT_VOTING,
			"MESSAGE" => $context
		));
	}
}