• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/internals/controller.php
  • Класс: BitrixReportInternalsController
  • Вызов: Controller::exec
public function exec()
{
	try
	{
		//todo move in processBeforeAction()
		if($this->request->isPost())
		{
			CUtil::jSPostUnescape();
			$this->request->addFilter(new PostDecodeFilter);
		}

		$this->resolveAction();
		$this->checkAction();

		$this->checkRequiredModules();

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

		$action = $this->getAction();
		if(
			$this->processBeforeAction($action) === true &&
			$this->triggerOnBeforeAction($action) === true
		)
		{
			$this->runAction();
		}
	}
	catch(Exception $e)
	{
		$this->runProcessingException($e);
	}
}