• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/product.php
  • Класс: BitrixCatalogControllerProduct
  • Вызов: Product::processBeforeAction
protected function processBeforeAction(EngineAction $action)
{
	$r = new Result();

	if ($action->getName() === 'add')
	{
		$r = $this->processBeforeAdd($action);
	}
	else if ($action->getName() === 'update')
	{
		$r = $this->processBeforeUpdate($action);
	}

	if (!$r->isSuccess())
	{
		$this->addErrors($r->getErrors());

		return null;
	}

	if ($this->isActionWithDefferedCalculation($action))
	{
		$this->processBeforeDeferredCalculationAction();
	}

	return parent::processBeforeAction($action);
}