• Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/base/controller.php
  • Класс: BitrixVoteBaseController
  • Вызов: Controller::__construct
public function __construct()
{
	try
	{
		$this->errorCollection = new ErrorCollection;
		$this->request = Context::getCurrent()->getRequest();

		$this->init();
	}
	catch(Exception $e)
	{
		$this->errorCollection->add(array(new Error($e->getMessage())));
	}

	if (!$this->errorCollection->isEmpty())
	{
		$this->sendJsonErrorResponse();
	}
}