• Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/base/controller.php
  • Класс: BitrixVoteBaseController
  • Вызов: Controller::exec
public function exec()
{
	try
	{
		$this->collectDebugInfo();
		$this->resolveAction();
		$this->checkAction();
		if ($this->prepareParams() && $this->errorCollection->isEmpty() && $this->processBeforeAction($this->getAction()) === true)
		{
			$this->runAction();
		}
		$this->logDebugInfo();
	}
	catch(Exception $e)
	{
		$this->errorCollection->add(array(new Error($e->getMessage())));
	}

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